]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/include/stg/netunit.h
[NY Flight] One time protocol initialization.
[stg.git] / stglibs / srvconf.lib / include / stg / netunit.h
index d40b4c6ac2585f08db94036605b59dc0f250edea..332670d6ef8121ba6a6ec5276bcf245f6835ec8f 100644 (file)
@@ -78,18 +78,13 @@ confData
 class NETTRANSACT
 {
 public:
-    NETTRANSACT();
+    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;
 
     void    SetRxCallback(void * data, RxCallback_t);
 
-    void    SetServer(const char * serverName);
-    void    SetServerPort(short unsigned p);
-
-    void    SetLogin(const char * l);
-    void    SetPassword(const char * p);
-    ////////////////////////////////////////////
     int     Connect();
     int     Disconnect();
     void    Reset();
@@ -112,7 +107,7 @@ private:
     void Decrypt(char * d, const char * s, BLOWFISH_CTX *ctx);
 
     std::string server;
-    short unsigned  port;
+    uint16_t  port;
     std::string login;
     std::string password;
     int     outerSocket;