libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ service_receive()

service_error_t service_receive ( service_client_t  client,
char *  data,
uint32_t  size,
uint32_t *  received 
)

Receives data using the given service client.

Parameters
clientThe service 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)
Returns
SERVICE_E_SUCCESS on success, SERVICE_E_INVALID_ARG when one or more parameters are invalid, SERVICE_E_NOT_ENOUGH_DATA when not enough data received, SERVICE_E_TIMEOUT when the connection times out, SERVICE_E_MUX_ERROR when a communication error occurs, or SERVICE_E_UNKNOWN_ERROR when an unspecified error occurs.