X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/113c3cef204f3380a266483ec9120f673640c673..fc06430b05b154e0e859c6a436c1ffd74576a189:/stglibs/srvconf.lib/netunit.h 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; }; //---------------------------------------------------------------------------