libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ companion_proxy_start_forwarding_service_port()

companion_proxy_error_t companion_proxy_start_forwarding_service_port ( companion_proxy_client_t  client,
uint16_t  remote_port,
const char *  service_name,
uint16_t *  forward_port,
plist_t  options 
)

Start forwarding a service port on the companion device to a port on the idevice.

See also
companion_proxy_stop_forwarding_service_port
Parameters
clientThe companion_proxy client
remote_portremote port
service_nameThe name of the service that shall be forwarded
forward_portPointer that will receive the newly-assigned port accessible via USB/Network on the idevice
optionsPLIST_DICT with additional options. Currently known are IsServiceLowPriority (boolean) and PreferWifi (boolean).
Returns
COMPANION_PROXY_E_SUCCESS on success, or a COMPANION_PROXY_E_* error code otherwise.