FitCnxRead
Syntax | ||
int FitCnxRead(int num,int *sock,struct RadarParm *prm, struct FitData *fit,int *flag, struct timeval *tmout); | ||
Header | ||
superdarn/fitcnx.h | ||
Library | ||
fitcnx | ||
Description | ||
The The argument sock is a pointer to an array of file descriptors associated with a set of connections. The argument num is the number of elements in the array. When a block of data is received from one of the connections it is decoded
and used to populate the appropriate members of the array of radar parameter blocks pointed to by the argument prm and the array of The argument flag is a pointer to an array used to record whether a message read from a particular connection was successfully decoded. If no message was received for a connection, then the corresponding element of the array is set to zero. If a message was successfully decoded, the element is set to (1), and if an error occurred it is set to (-1). The argument tout is a pointer that defines a time limit for the function. If no messages are received within the specified time, the function will return. If tout is a | ||
Returns | ||
Returns zero on success. On error, (-1) is returned. | ||
Errors | ||
On error, (-1) is returned. | ||
Example | ||
|