USB Network Gate for macOS SDK User Guide

USB Network Gate for macOS SDK User Guide

const char *getLoglevelStr(int level);
Returns loglevel name.   Parameters:   level - loglevel value - LOG_DEBUG, LOG_ERR, etc.   Return:   Return NULL if argument is invalid, otherwise o...
Wed, 27 Jul, 2022 at 5:36 PM
int getLoglevelValue(const std::string &level);
Returns loglevel value - LOG_DEBUG, LOG_ERR, etc.   Parameters:   level - log level name   Return:   Return -1 if argument is invalid   Note:...
Wed, 27 Jul, 2022 at 5:36 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 oft...
Wed, 27 Jul, 2022 at 5:35 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 established....
Wed, 27 Jul, 2022 at 5:43 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...
Wed, 27 Jul, 2022 at 5:43 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_loca...
Wed, 27 Jul, 2022 at 9:02 PM
Device(const std::vector &fields, bool is_local);
Creates local or remote USB device from parsed device string.   Parameters:   fields - split values of string representation is_local - true if this...
Wed, 27 Jul, 2022 at 5:42 PM
bool isa(const Device &dev) const;
Return:   Returns true if the argument shares internal representation with this instance
Wed, 27 Jul, 2022 at 5:42 PM
size_t hash() const;
Return:   Returns hash value of object
Wed, 27 Jul, 2022 at 5:42 PM
bool update(const Device &dev);
Copies all mutable members from dev (for which setXXX members present). Parameters: dev - object to copy members from Return: Return bool true if an...
Wed, 27 Jul, 2022 at 5:42 PM