X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8569ecdc2c9368dc0fe650b901cce7b37337ffec..3f023a72d0eedd982ba16401fbdff63dc5dddd4d:/stglibs/srvconf.lib/include/stg/servconf.h?ds=inline diff --git a/stglibs/srvconf.lib/include/stg/servconf.h b/stglibs/srvconf.lib/include/stg/servconf.h index 2a2dbcaa..cd37e49e 100644 --- a/stglibs/srvconf.lib/include/stg/servconf.h +++ b/stglibs/srvconf.lib/include/stg/servconf.h @@ -43,6 +43,9 @@ class SERVCONF public: SERVCONF(const std::string & server, uint16_t port, const std::string & login, const std::string & password); + SERVCONF(const std::string & server, uint16_t port, + const std::string & localAddress, uint16_t localPort, + const std::string & login, const std::string & password); ~SERVCONF(); int ServerInfo(SERVER_INFO::CALLBACK f, void * data); @@ -72,7 +75,10 @@ public: const USER_STAT_RES & stat, SIMPLE::CALLBACK f, void * data); int DelUser(const std::string & login, SIMPLE::CALLBACK f, void * data); - int AddUser(const std::string & login, SIMPLE::CALLBACK f, void * data); + int AddUser(const std::string & login, + const USER_CONF_RES & conf, + const USER_STAT_RES & stat, + SIMPLE::CALLBACK f, void * data); int AuthBy(const std::string & login, AUTH_BY::CALLBACK f, void * data); int SendMessage(const std::string & login, const std::string & text, SIMPLE::CALLBACK f, void * data); int CheckUser(const std::string & login, const std::string & password, SIMPLE::CALLBACK f, void * data);