IPX/SPX Programming Manual

Library Routines
HP NonStop IPX/SPX Programming Manual528022-001
5-57
socket_backup
socket_backup
The socket_backup function returns data to the backup process of a NonStop
process pair, after the primary process has checkpointed the data using the
socket_get_open_info function. This function is designed to allow user
applications to establish a backup open to an IPX/SPX process. This function is called
by the backup user application.
error
is the return value. If the call is successful, a zero is returned. If the call is not
successful, -1 is returned. If the call failed, the external variable errno is set as
indicated below in “Errors.”
message
Refer to the FILE_OPEN_ procedure call in the Guardian Procedure Calls
Reference Manual for a description of this field.
brother_phandle
Refer to the FILE_OPEN_ procedure call in the Guardian Procedure Calls
Reference Manual for a description of this field.
Errors
File system errors as defined in <errno.h> are returned by this call. For a description
of the file system error returned, type (from the TACL prompt):
> ERROR error-num
where error-num is the error number returned in errno.
C Synopsis
#include <socket.h>
#include <nv.h>
#include <if.h>
#include <netdb.h>
error = socket_backup(*message, *brother_phandle);
int error;
struct open_info_message *message;
char *brother_phandle;