USB Network Gate for macOS SDK User Guide

USB Network Gate for macOS SDK User Guide

class EveusbEventHandler
Receives responses from daemon on requests sent via EveusbController. Pure abstract class.   Write an inheriting class with the implementation of methods...
Wed, 27 Jul, 2022 at 4:54 PM
void onError(const std::string &msg)
Notifies about non-critical errors. There are parse errors, unknown command, bad syntax, etc.   Parameters:   msg - text of error
Wed, 27 Jul, 2022 at 4:54 PM
long writeToDaemon(const std::string &buf);
Call this method to write buf to socket connection established with daemon. Example of implementation: return write(fd, buf.data(), buf.size());   Parame...
Wed, 27 Jul, 2022 at 4:54 PM
long readFromDaemon(std::vector &buf);
Call this method to read no more than buf.size() bytes into buf from socket connection established with daemon.   Example of implementation: return read(f...
Wed, 27 Jul, 2022 at 4:54 PM
void onMessage(const std::string &msg, bool incoming);
Notifies about message received from or sent to the daemon. Call this method for debug purposes, etc.   Parameters:   msg - message incoming - true if...
Wed, 27 Jul, 2022 at 4:54 PM
void onVersion(const std::string &version);
This method is called after invocation of EveusbController::getVersion   Parameters:   version - сomma-separated values the first field - the daemon ve...
Wed, 27 Jul, 2022 at 5:09 PM
void onCompress(const std::string &compress);
This method is called after invocation of EveusbController::getCompression   Parameters:   compress - type of compression ("none", "best&...
Wed, 27 Jul, 2022 at 5:09 PM
void onLicense(const License &info);
This method is called after invocation of EveusbController::getLicense   Parameters:   info - structure that contains information from the license   N...
Wed, 27 Jul, 2022 at 5:09 PM
void onActivation(const Activation &info, const std::string &error, bool online);
This method is called after invocation of EveusbController::getLicense or EveusbController::Activate   Parameters:   info - structure that contains inf...
Wed, 27 Jul, 2022 at 5:09 PM
void onOfflineRequest(const std::string &data)
This method is called after the invocation of EveusbController::getOfflineRequest   Parameters:   data - data that should be sent to the activation serv...
Wed, 27 Jul, 2022 at 5:09 PM