libdali  1.6
 All Classes Files Functions Variables Typedefs Macros Pages
Functions
statefile.c File Reference
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "libdali.h"

Functions

int dl_savestate (DLCP *dlconn, const char *statefile)
 Save a DataLink connection state to a file. More...
 
int dl_recoverstate (DLCP *dlconn, const char *statefile)
 Recover DataLink connection state from a file. More...
 

Detailed Description

:

Routines to save and recover DataLink state information to/from a file.

Author
Chad Trabant, IRIS Data Management Center

modified: 2011.003

Function Documentation

int dl_recoverstate ( DLCP dlconn,
const char *  statefile 
)

Recover DataLink connection state from a file.

Recover connection state from a state file and set the state parameters in a given DataLink Connection Paramters.

Parameters
dlconnDataLink Connection Parameters
statefileFile to recover state from
Return values
-1Error
0Completed successfully
1File could not be opened (probably not found)
int dl_savestate ( DLCP dlconn,
const char *  statefile 
)

Save a DataLink connection state to a file.

Save the all the current the sequence numbers and time stamps into the given state file.

Parameters
dlconnDataLink Connection Parameters
statefileFile to save state to
Return values
-1Error
0Completed successfully