| libimobiledevice 1.4.0 API Documentation - Return to Homepage

mobilebackup2_client_free
mobilebackup2_client_new
mobilebackup2_client_start_service
mobilebackup2_client_t
mobilebackup2_error_t
mobilebackup2_receive_message
mobilebackup2_receive_raw
mobilebackup2_send_message
mobilebackup2_send_raw
mobilebackup2_send_request
mobilebackup2_send_status_response
MOBILEBACKUP2_SERVICE_NAME
mobilebackup2_version_exchange
| ## ◆ mobilebackup2_receive_raw()
LIBIMOBILEDEVICE_API mobilebackup2_error_t mobilebackup2_receive_raw | ( | mobilebackup2_client_t | client,
|  | char * | data,
|  | uint32_t | length,
|  | uint32_t * | bytes )
  Receive binary from the device. Note This function returns MOBILEBACKUP2_E_SUCCESS even if no data has been received (unless a communication error occurred). The fourth parameter is required and must be checked to know how many bytes were actually received. Parameters
  client | The MobileBackup client to receive from.
  data | Pointer to a buffer that will be filled with the received data.
  length | Number of bytes to receive. The data buffer needs to be large enough to store this amount of data.
  bytes | Number of bytes actually received.
Returns MOBILEBACKUP2_E_SUCCESS if any or no data was received, MOBILEBACKUP2_E_INVALID_ARG if one of the parameters is invalid, or MOBILEBACKUP2_E_MUX_ERROR if receiving the data failed.