USB Network Gate for Linux SDK User Guide

USB Network Gate for Linux SDK User Guide

class EveusbController
The daemon management API.    All member functions are asynchronous. The function sends request to the daemon and returns control. Once the response from ...
Sun, 20 Mar, 2022 at 3:56 PM
static int connect();
Establishes connection with daemon via local socket   Return:   Socket is ready to read/write, you should close it yourself   Remarks:   Use eit...
Sun, 20 Mar, 2022 at 3:56 PM
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.
Sun, 20 Mar, 2022 at 3:56 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
Sun, 20 Mar, 2022 at 3:55 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:   byt...
Sun, 20 Mar, 2022 at 3:55 PM
void clearDataAvailable();
Clears incomplete messages received from daemon. Is used if socket connection was reestablished before calling onDataAvailable.
Sun, 20 Mar, 2022 at 4:01 PM
int reloadDaemon();
The same as kill -SIGHUP the daemon.   Return:   errno error code
Sun, 20 Mar, 2022 at 4:01 PM
int topDaemon();
Terminates the daemon.   Return:   errno error code
Sun, 20 Mar, 2022 at 4:01 PM
int getLoglevel();
Requests current log level from daemon   Return:   errno error code   Note: See onLoglevel()
Sun, 20 Mar, 2022 at 3:57 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
Sun, 20 Mar, 2022 at 4:01 PM