some TLS work.
This commit is contained in:
1 parent
f9c12f4ba2
commit
df0e7cd6da
8 files changed
+85
-42
No files matched your search
Executable
BIN
Binary file not shown.
+3
-5
@@ -10,18 +10,16 @@ int main(int argc, char **argv) {
|
||||
|
||||
try {
|
||||
|
||||
coreutils::Log(new coreutils::File("/tmp/http.log", O_WRONLY | O_APPEND | O_CREAT, 0644));
|
||||
coreutils::Log(coreutils::LOG_INFO) << "Terminal Server starting. Build " << __DATE__ << " " << __TIME__;
|
||||
coreutils::Log(new coreutils::File("/tmp/console.log", O_WRONLY | O_APPEND | O_CREAT, 0644));
|
||||
coreutils::Log(coreutils::LOG_INFO) << "Console Server starting. Build " << __DATE__ << " " << __TIME__;
|
||||
|
||||
std::string ipAddress = "0.0.0.0";
|
||||
|
||||
core::EPoll ePoll;
|
||||
|
||||
core::TerminalServer terminals(ePoll, core::IPAddress(ipAddress, 1026));
|
||||
|
||||
core::ConsoleServer console(ePoll, core::IPAddress(ipAddress, 1027));
|
||||
|
||||
console.commands.add(ePoll, "threads");
|
||||
console.commands.add(httpSessions, "sessions");
|
||||
console.commands.add(console, "consoles");
|
||||
console.commands.add(console.commands, "help");
|
||||
ePoll.start(2, 1000);
|
||||
|
||||
Reference in new issue
Block a user