//-----------------------------------------------------------------------------
bool ProcessSetUser(const std::string & server,
int port,
- const std::string & admLogin,
- const std::string & admPasswd,
+ const std::string & login,
+ const std::string & password,
const std::string & str)
{
-SERVCONF sc;
-
-sc.SetServer(server.c_str());
-sc.SetPort(port);
-sc.SetAdmLogin(admLogin.c_str());
-sc.SetAdmPassword(admPasswd.c_str());
+SERVCONF sc(server, port, login, password);
ResultData data;
sc.SetChgUserCallback(RecvSetUserAnswer, &data);
const std::string & login, const std::string & password,
const std::string & requestString)
{
-SERVCONF sc;
-
-sc.SetServer(server.c_str());
-sc.SetPort(port);
-sc.SetAdmLogin(login.c_str());
-sc.SetAdmPassword(password.c_str());
+SERVCONF sc(server, port, login, password);
ResultData data;
sc.SetSendMessageCallback(SendMessageCallback, &data);
const std::string &login,
REQUEST & request)
{
-SERVCONF sc;
-
-sc.SetServer(server.c_str());
-sc.SetPort(port);
-sc.SetAdmLogin(admLogin.c_str());
-sc.SetAdmPassword(admPasswd.c_str());
+SERVCONF sc(server, port, admLogin, admPasswd);
GetUserData data(request, false);
const std::string &admPasswd,
const std::string &login)
{
-SERVCONF sc;
-
-sc.SetServer(server.c_str());
-sc.SetPort(port);
-sc.SetAdmLogin(admLogin.c_str());
-sc.SetAdmPassword(admPasswd.c_str());
+SERVCONF sc(server, port, admLogin, admPasswd);
ResultData data;
sc.SetAuthByCallback(RecvAuthByData, &data);