libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ syslog_relay_receive_with_timeout()

syslog_relay_error_t syslog_relay_receive_with_timeout ( syslog_relay_client_t  client,
char *  data,
uint32_t  size,
uint32_t *  received,
unsigned int  timeout 
)

Receives data using the given syslog_relay client with specified timeout.

Parameters
clientThe syslog_relay client to use for receiving
dataBuffer that will be filled with the data received
sizeNumber of bytes to receive
receivedNumber of bytes received (can be NULL to ignore)
timeoutMaximum time in milliseconds to wait for data.
Returns
SYSLOG_RELAY_E_SUCCESS on success, SYSLOG_RELAY_E_INVALID_ARG when one or more parameters are invalid, SYSLOG_RELAY_E_MUX_ERROR when a communication error occurs, or SYSLOG_RELAY_E_UNKNOWN_ERROR when an unspecified error occurs.