USB Network Gate for Linux SDK User Guide

USB Network Gate for Linux SDK User Guide

int remoteBreakConnection(const Device &dev);
Remote device management. Stops connection of the remote USB device to the remote server.   Parameters:   dev - device that needs to be disconnected ...
Sun, 20 Mar, 2022 at 4:10 PM
int remoteDelete(const Device &dev);
Remote device management. Removes device from the list.   Parameters:   dev - device that needs to be removed   Return:   errno error code
Sun, 20 Mar, 2022 at 4:11 PM
const char *getLoglevelStr(int level);
Returns loglevel name.    Parameters:    level - loglevel value - LOG_DEBUG, LOG_ERR, etc.    Return:    Returns NULL if the argument is invalid...
Sun, 20 Mar, 2022 at 4:11 PM
int getLoglevelValue(const std::string &level);
Returns log level value - LOG_DEBUG, LOG_ERR, etc.   Parameters:   level - log level name   Return:   Returns -1 if the argument is invalid   Note...
Sun, 20 Mar, 2022 at 4:12 PM
int saveDevices();
Saves information about shared ports and remote devices into the devices file. The daemon reads this file during startup and restores trees of shared and re...
Sun, 20 Mar, 2022 at 4:13 PM
Class Device
Local or remote USB device representation. If invalid arguments are passed to any constructor, Null Object will be returned.   Instances of this class are ...
Sun, 20 Mar, 2022 at 4:13 PM
Device(const std::string &reverse_host_, unsigned short tcp_port, const std::string &kernel_devname_);
Creates local USB device representation.    Parameters:    reverse_host_ - optional. The address of the host to which the TCP connection is establishe...
Sun, 20 Mar, 2022 at 4:55 PM
Device( const std::string &host_, const std::string &reverse_host_, unsigned short tcp_port, const std::string &usbhub_, const std::string &usbport_);
Creates remote USB device representation.   Parameters:   host_ - server IP or hostname, mandatory   reverse_host_ - optional. Localhost network hostn...
Sun, 20 Mar, 2022 at 4:55 PM
Device(const std::string &dev, bool is_local);
Creates local or remote USB device representation from string.   Parameters:   dev - string representation of device, comma-separated values   is_l...
Sun, 20 Mar, 2022 at 5:14 PM
Device(const std::vector &fields, bool is_local);
Creates local or remote USB device representation from parsed device string.   Parameters:   fields - split values of string representation   is_local - ...
Sun, 20 Mar, 2022 at 4:54 PM