Parameters:

 

[host], [reverse_host], tcp_port, usbhub, usbport, [nick], [name], [auth], [encr], [compr], [sharedWith], [reserved1], [reserved2], [allowRDisconnect].

 

host - the IP address of the host to which the device is connected physically. This parameter is mandatory to connect to a remote device and is optional to share a local device.

 

reverse_host - the address of the host to which the TCP connection is established. Is used for callback connections when the host where the device is shared acts as a TCP client. If not empty, the server will permanently try to connect to the client on reverse_host_:tcp_port

 

tcp_port - the name of the TCP port to share the device on or to connect to a reverse host (if specified). 

 

usbhub - the name of the USB hub to which the device is connected physically 

 

usbport - the name of the USB port to which the device is connected physically (or kernel_devname if the device is local). 

 

nick - device description 

 

name - device name 

 

auth - if not empty, password authentication is enabled 

 

encr - if not empty, traffic encryption is enabled 

 

compr - if not empty, traffic compression is enabled 

 

sharedWith - the IP address of the client that is connected to the shared device 

 

reserved1, reserved2 - password authentication parameters (To set password authentication, you should use the Device::setPassword function) 

 

allowRDisconnect - if not empty, any remote client is allowed to disconnect other clients from the shared device 

 

A string representation of a shared local device. 

 

Examples: 

 

1) ,,5001,usb1,1-1,description,Mass Storage,A,E,C,,,,R 

 

5001 - the device is shared and available for connection on TCP port 5001, 

usb1 - the name of the USB hub to which the device is connected physically, 

1-1 - the name of the USB port to which the device is connected physically, 

description - device description, 

Mass Storage - device name, 

A - authentication is enabled. (To set password authentication for connections to the shared device, use the function Device::setPassword), 

C - traffic compression is enabled, 

E - traffic encryption is enabled, 

R - any remote client is allowed to disconnect other clients from the device. 

 

2) ,,5001,usb1,1-1,,Mass Storage,,,,192.168.0.1,, 

 

5001 - the device is shared and available for connection on TCP port 5001, 

usb1 - the name of the USB hub to which the device is connected physically, 

1-1 - the name of the USB port to which the device is connected physically, 

Mass Storage - device name, 

192.168.0.1 - IP address of the client that is currently connected to the device. 

 

3) ,192.168.0.1,5001,usb1,1-1,description,Mass Storage,A,E,,,,, 

 

192.168.0.1:5001 - the device is shared and is available for callback connection on TCP port 5001. ‘192.168.0.1’ - the address of the host to which a callback connection is established. usb1 - the name of the USB hub to which the device is connected physically, 

1-1 - the name of the USB port to which the device is connected physically, 

description - device description, 

Mass Storage - device name, 

A - authentication is enabled. (To set password authentication for connections to the shared device, use the function Device::setPassword

E - traffic encryption is enabled. 

 

A string representation of a remote USB device. 

 

Examples: 

 

1) 192.168.0.5,,17505,RootHub#1,Port1,description,Mass Storage,A,E,C,,,R 

 

192.168.0.5:17505 - the address of the host on which the device is shared, 

RootHub#1 - the name of the USB hub to which the device is connected physically, 

Port1 - the name of the USB port to which the device is connected physically, 

description - device description, 

Mass Storage - device name, 

A - authentication is enabled. 

C - traffic compression is enabled, 

E - traffic encryption is enabled, 

R - any remote client is allowed to disconnect other clients from the device. 

 

2) 192.168.0.5,,17505,RootHub#1,Port1,,Mass Storage,,,,192.168.0.1,, 

 

192.168.0.5:17505 - the address of the host on which the device is shared, 

RootHub#1 - the name of the USB hub to which the device is connected physically, 

Port1 - the name of the USB port to which the device is connected physically, 

Mass Storage - device name, 

192.168.0.1 - IP address of the client that is currently connected to the device. 

 

3) 192.168.0.5,192.168.0.1,17505,RootHub#1,Port1,,Mass Storage,A,E,,, 

 

192.168.0.5 - the address of the host on which the device is shared, 

192.168.0.1:17505 - the address of the host to which a callback connection is established, 

RootHub#1 - the name of the USB hub to which the device is connected physically, 

Port1 - the name of the USB port to which the device is connected physically, 

Mass Storage - device name, 

A - authentication is enabled. 

E - traffic encryption is enabled.