DataSource for C SDK  8.0.1.207118-0de6d82f
Deprecated: Replaying Packets

Functions

void ds_replay (recv_replay_t callback)
 Replays all data in the current packet log file. More...
 
void ds_replay_by_field (int fieldnum, char *value, recv_replay_t callback)
 Replays all data in the current packet log file that arrived after an update with the specified value for the specified field. More...
 
int ds_replay_by_field_from_file (int fieldnum, char *value, recv_replay_t callback, char *filename)
 Replays all data in a file that arrived after an update with the specified value for the specified field. More...
 
void ds_replay_by_field_from_log (int fieldnum, char *value, recv_replay_t callback, ds_log_t *log)
 Replays all data in the log object that arrived after an update with the specified value for the specified field. More...
 
void ds_replay_by_time (time_t t, recv_replay_t callback)
 Replays all data in the current packet log file that arrived after a specified time. More...
 
int ds_replay_by_time_from_file (time_t t, recv_replay_t callback, char *filename)
 Replays all data in a file that arrived after a specified time. More...
 
void ds_replay_by_time_from_log (time_t t, recv_replay_t callback, ds_log_t *log)
 Replays all data in a log object that arrived after a specified time. More...
 
int ds_replay_from_file (recv_replay_t callback, char *filename)
 Replays all data in a file. More...
 
void ds_replay_from_log (recv_replay_t callback, ds_log_t *log)
 Replays all data in a packet log file. More...
 

Detailed Description

The Replay API allows packets previously received to be replayed through the system from the log file.

Function Documentation

void ds_replay ( recv_replay_t  callback)

Replays all data in the current packet log file.

Parameters
callbackThe function to receive all updates
void ds_replay_by_field ( int  fieldnum,
char *  value,
recv_replay_t  callback 
)

Replays all data in the current packet log file that arrived after an update with the specified value for the specified field.

Parameters
fieldnumThe field number to search for
valueThe field value to search for
callbackThe function to receive all updates
int ds_replay_by_field_from_file ( int  fieldnum,
char *  value,
recv_replay_t  callback,
char *  filename 
)

Replays all data in a file that arrived after an update with the specified value for the specified field.

Parameters
fieldnumThe field number to search for
valueThe field value to search for
callbackThe function to receive all updates
filenameThe filename to replay
Return values
0- File successfully replayed
-1- Error, could not open file
void ds_replay_by_field_from_log ( int  fieldnum,
char *  value,
recv_replay_t  callback,
ds_log_t log 
)

Replays all data in the log object that arrived after an update with the specified value for the specified field.

Parameters
fieldnumThe field number to search for
valueThe field value to search for
callbackThe function to receive all updates
logThe log object to replay
Return values
0- File successfully replayed
-1- Error, could not open file
void ds_replay_by_time ( time_t  t,
recv_replay_t  callback 
)

Replays all data in the current packet log file that arrived after a specified time.

Parameters
tThe time in seconds
callbackThe function to receive all updates
int ds_replay_by_time_from_file ( time_t  t,
recv_replay_t  callback,
char *  filename 
)

Replays all data in a file that arrived after a specified time.

Parameters
tThe time in seconds
callbackThe function to receive all updates
filenameThe file to replay
Return values
0- File successfully replayed
-1- Error, could not open file
void ds_replay_by_time_from_log ( time_t  t,
recv_replay_t  callback,
ds_log_t log 
)

Replays all data in a log object that arrived after a specified time.

Parameters
tThe time in seconds
callbackThe function to receive all updates
logThe log object to replay
int ds_replay_from_file ( recv_replay_t  callback,
char *  filename 
)

Replays all data in a file.

Parameters
callbackThe function to receive all updates
filenameThe filename to replay
Return values
0- File successfully replayed
-1- Error, could not open file
void ds_replay_from_log ( recv_replay_t  callback,
ds_log_t log 
)

Replays all data in a packet log file.

Parameters
callbackThe function to receive all updates
logThe log object to replay

Generated on Fri Feb 23 2024 14:56:10 for DataSource for C SDK