
Data Type |
Field Name |
Description | ||
int |
cp_status_version |
Version of the status file. | ||
int |
cp_header_size |
Size of the header in bytes. | ||
int |
cp_record_size |
Allocated size for each fax channel. | ||
int |
cp_max_channel |
Number of fax channels active in the chassis. | ||
time_t |
cp_last_update |
Time of last update. | ||
Name: |
int gfdReadStatusFileRecord (int status_fid, | |||
Inputs: |
int status_fid |
| ||
int channel |
| |||
Outputs: |
CPRECORD *rec |
| ||
Returns: |
GFD_SUCCESS |
| ||
GFDBAD_STATUS_FILE |
| |||
GFDNO_STATUS_FILE |
| |||
Includes: |
gfdstatu.h |
|||
gfdmsg.h |
||||
gfdipc.h |
||||
| ||||
The gfdReadStatusFileRecord( ) function that reads a record from the status file if the file already is open.
#include "gfdstatu.h"
#include "gfdmsg.h"
#include "gfdipc.h"
CPRECORD cprec;
int status_fid;
int i;
int status;
for (i = 1; i <= maxchannel; ++i)
{
status = gfdReadStatusFileRecord (status_fid,&cprec,i);
}
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation