X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/49ac42e64c982c16ca4421a50d15f36574ca0c10..3261ecc2503f45394eb3b9df97c36b08fb14fb1d:/stglibs/srvconf.lib/netunit.h?ds=sidebyside diff --git a/stglibs/srvconf.lib/netunit.h b/stglibs/srvconf.lib/netunit.h index b6584ee5..d1191435 100644 --- a/stglibs/srvconf.lib/netunit.h +++ b/stglibs/srvconf.lib/netunit.h @@ -35,6 +35,7 @@ public: NETTRANSACT(const std::string & server, uint16_t port, const std::string & localAddress, uint16_t localPort, const std::string & login, const std::string & password); + ~NETTRANSACT(); int Transact(const std::string & request, CALLBACK f, void * data); const std::string & GetError() const { return errorMsg; } @@ -59,8 +60,11 @@ private: uint16_t localPort; std::string login; std::string password; - int outerSocket; + int sock; std::string errorMsg; + + static bool TxCrypto(const void * block, size_t size, void * data); + static bool RxCrypto(const void * block, size_t size, void * data); }; #endif