RSP_serverConnect

Name

RSP_serverConnect -- Gets current data from an RSPD.

Synopsis

int RSP_serverConnect(RSP_server* server);

Description

Connects to the given RSPD and retrieves its data. The server parameter should have been returned from a call to RSP_newServer, at which time parameters like ip and port were set. To actually look at the data which was retrieved, use the RSP_nextServerModule function (described later).

Returns

This function returns 0 if no error occurred, and -1 otherwise.

Error Conditions

If an error occurs with this function, -1 is returned and rsp_error is set appropriately. Possible error values are: