libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ idevice_connect()

idevice_error_t idevice_connect ( idevice_t  device,
uint16_t  port,
idevice_connection_t connection 
)

Set up a connection to the given device.

Parameters
deviceThe device to connect to.
portThe destination port to connect to.
connectionPointer to an idevice_connection_t that will be filled with the necessary data of the connection.
Returns
IDEVICE_E_SUCCESS if ok, otherwise an error code.