git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetic changes.
[stg.git]
/
projects
/
sgconf
/
common_sg.h
diff --git
a/projects/sgconf/common_sg.h
b/projects/sgconf/common_sg.h
index 03090a7628fb71fa47db5cea37d5e65bcb8981e1..87b8509b4e2e4ec4e962c29bfa76749fd86ab8cc 100644
(file)
--- a/
projects/sgconf/common_sg.h
+++ b/
projects/sgconf/common_sg.h
@@
-29,6
+29,7
@@
#define COMMON_SG_H
#include "stg/servconf.h"
#define COMMON_SG_H
#include "stg/servconf.h"
+#include "stg/servconf_types.h"
#include "request.h"
#include <string>
#include "request.h"
#include <string>
@@
-45,24
+46,27
@@
int CheckLogin(const char * login);
void ConvertFromKOI8(const std::string & src, std::string * dst);
void ConvertToKOI8(const std::string & src, std::string * dst);
void ConvertFromKOI8(const std::string & src, std::string * dst);
void ConvertToKOI8(const std::string & src, std::string * dst);
-int ProcessGetUser(const std::string &server,
+bool ProcessGetUser(const std::string & server,
+ int port,
+ const std::string & admLogin,
+ const std::string & admPasswd,
+ const std::string & login,
+ REQUEST & request);
+
+bool ProcessAuthBy(const std::string & server,
int port,
int port,
- const std::string &admLogin,
- const std::string &admPasswd,
- const std::string &login,
- REQUEST & request);
+ const std::string & admLogin,
+ const std::string & admPasswd,
+ const std::string & login);
-
int ProcessAuthBy(const std::string &
server,
- int port,
-
const std::string &
admLogin,
-
const std::string &
admPasswd,
-
const std::string &login
);
+
bool ProcessSetUser(const std::string &
server,
+
int port,
+
const std::string &
admLogin,
+
const std::string &
admPasswd,
+
const std::string & str
);
-int ProcessSetUser(const std::string &server,
- int port,
- const std::string &admLogin,
- const std::string &admPasswd,
- const std::string &str,
- bool isMessage = false);
+bool ProcessSendMessage(const std::string & server, uint16_t port,
+ const std::string & login, const std::string & password,
+ const std::string & requestString);
#endif
#endif