X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1b2ab8e6d556a8ed30d4feadc72263b3f4c86665..668e4a697bab5faa6a78e9708cff8bb1d4a36241:/stglibs/srvconf.lib/netunit.h diff --git a/stglibs/srvconf.lib/netunit.h b/stglibs/srvconf.lib/netunit.h index f87fb3a8..d1191435 100644 --- a/stglibs/srvconf.lib/netunit.h +++ b/stglibs/srvconf.lib/netunit.h @@ -32,6 +32,10 @@ public: NETTRANSACT(const std::string & server, uint16_t port, const std::string & login, const std::string & password); + 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; } @@ -52,10 +56,15 @@ private: std::string server; uint16_t port; + std::string localAddress; + 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