summaryrefslogtreecommitdiffstats
path: root/src/server/server.cpp
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2020-11-25 19:04:49 +0300
committerJoursoir <chat@joursoir.net>2020-11-25 19:04:49 +0300
commit6139b74876a5c8417d75c2759ce0baec4ae0e171 (patch)
tree9924c31f8136c3834fd452e3846a35bcac6602d7 /src/server/server.cpp
parent8dfca4755430209504dac5ed2e03a482342265b3 (diff)
downloadwant-chat-6139b74876a5c8417d75c2759ce0baec4ae0e171.tar.gz
want-chat-6139b74876a5c8417d75c2759ce0baec4ae0e171.tar.bz2
want-chat-6139b74876a5c8417d75c2759ce0baec4ae0e171.zip
add second (work with chat) level of abstraction
Diffstat (limited to 'src/server/server.cpp')
-rw-r--r--src/server/server.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/server.cpp b/src/server/server.cpp
index 6834ceb..ab7c420 100644
--- a/src/server/server.cpp
+++ b/src/server/server.cpp
@@ -2,6 +2,8 @@
#include "chat.hpp"
+const int port = 3030;
+
int main(int argc, char *argv[])
{
/* Event-driven programming */
@@ -10,11 +12,11 @@ int main(int argc, char *argv[])
2) event handling
*/
EventSelector *selector = new EventSelector;
- /*ChatServer *serv = ChatServer::Start(selector, port);
+ Server *serv = Server::Start(selector, port);
if(!serv) {
perror("server");
return 1;
- }*/
+ }
selector->Run();
return 0;
} \ No newline at end of file