libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ property_list_service_receive_plist_with_timeout()

property_list_service_error_t property_list_service_receive_plist_with_timeout ( property_list_service_client_t  client,
plist_t *  plist,
unsigned int  timeout 
)

Receives a plist using the given property list service client with specified timeout.

Binary or XML plists are automatically handled.

Parameters
clientThe property list service client to use for receiving
plistpointer to a plist_t that will point to the received plist upon successful return
timeoutMaximum time in milliseconds to wait for data.
Returns
PROPERTY_LIST_SERVICE_E_SUCCESS on success, PROPERTY_LIST_SERVICE_E_INVALID_ARG when connection or *plist is NULL, PROPERTY_LIST_SERVICE_E_PLIST_ERROR when the received data cannot be converted to a plist, PROPERTY_LIST_SERVICE_E_MUX_ERROR when a communication error occurs, or PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR when an unspecified error occurs.