libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ idevice_connection_receive()

idevice_error_t idevice_connection_receive ( idevice_connection_t  connection,
char *  data,
uint32_t  len,
uint32_t *  recv_bytes 
)

Receive data from a device via the given connection.

This function is like idevice_connection_receive_timeout, but with a predefined reasonable timeout.

Parameters
connectionThe connection to receive data from.
dataBuffer that will be filled with the received data. This buffer has to be large enough to hold len bytes.
lenBuffer size or number of bytes to receive.
recv_bytesNumber of bytes actually received.
Returns
IDEVICE_E_SUCCESS if ok, otherwise an error code.