USB Network Gate for macOS SDK User Guide

USB Network Gate for macOS SDK User Guide

static std::string getSocketPath();
Returns path to local socket to establish connection with daemon   Return:   Path to socket if you use QLocalSocket, CFSocket, libdispatch, etc.
Wed, 27 Jul, 2022 at 5:23 PM
void setEventHandler(EveusbEventHandler *obj);
Must be called before any other non-static member.   Parameters:   obj - must be not null. The instance of the class inherited from EveusbEventHandler
Wed, 27 Jul, 2022 at 5:23 PM
int onDataAvailable(long bytes = -1);
Call onDataAvailable when there are incoming data available on socket opened via connect() or in another way (QLocalSocket, etc.).   Parameters:   bytes...
Wed, 27 Jul, 2022 at 5:23 PM
void clearDataAvailable();
Clears incomplete messages received from daemon. Is used if socket connection was reestablished before onDataAvailable calling.
Wed, 27 Jul, 2022 at 5:23 PM
int reloadDaemon();
The same as kill -SIGHUP the daemon.   Return:   errno error code
Wed, 27 Jul, 2022 at 5:24 PM
int stopDaemon();
Terminates the daemon.   Return:   errno error code
Wed, 27 Jul, 2022 at 5:24 PM
int getLoglevel();
Requests current log level from daemon   Return:   errno error code   Note: See onLoglevel()
Wed, 27 Jul, 2022 at 5:24 PM
int setLoglevel(int level);
Sets log level to daemon   Parameters:   level - Severity level (see constants from syslog.h: LOG_ERR, LOG_WARNING, etc.)   Return:   errno error code
Wed, 27 Jul, 2022 at 5:24 PM
int getLicense();
Requests information about the license from daemon   Return:   errno error code   Note: See onLicense()
Wed, 27 Jul, 2022 at 5:24 PM
int Register(const std::string &name, const std::string &code);
Sends registration information to daemon.   Parameters:   name - registration name given to you on license purchase code - registration code given to y...
Wed, 27 Jul, 2022 at 5:24 PM