X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/113c3cef204f3380a266483ec9120f673640c673..0cabf81ae09d8f44c953f1fe356e24b7e84f2317:/stglibs/srvconf.lib/netunit.h?ds=sidebyside diff --git a/stglibs/srvconf.lib/netunit.h b/stglibs/srvconf.lib/netunit.h index 4d3bcfb0..fb2a1e28 100644 --- a/stglibs/srvconf.lib/netunit.h +++ b/stglibs/srvconf.lib/netunit.h @@ -40,9 +40,9 @@ public: NETTRANSACT(const std::string & server, uint16_t port, const std::string & login, const std::string & password); int Transact(const char * data); - const std::string & GetError() const; + const std::string & GetError() const { return errorMsg; } - void SetRxCallback(void * data, RxCallback_t); + void SetRxCallback(void * data, RxCallback_t cb); int Connect(); int Disconnect(); @@ -64,9 +64,9 @@ private: uint16_t port; std::string login; std::string password; - int outerSocket; + int outerSocket; RxCallback_t RxCallBack; - void * dataRxCallBack; + void * dataRxCallBack; std::string errorMsg; }; //---------------------------------------------------------------------------