repo.or.cz
/
raggin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
initial commit
[raggin.git]
/
server_main.cpp
blob
7dd80f0484ea018c14e055d2520be287ba5cd107
1
#include <iostream>
2
#include <exception>
3
#include
"src/server/server.hpp"
4
#include
"src/log.hpp"
5
6
using namespace
std
;
7
8
9
int
main
()
10
try
11
{
12
using namespace
raggin
::
server
;
13
14
init_log
();
15
16
server
srv
(
"127.0.0.1"
,
1337
);
17
srv
.
run
();
18
19
cin
.
get
();
20
}
21
catch
(
exception
&
ex
)
22
{
23
cerr
<<
ex
.
what
() <<
endl
;
24
cin
.
get
();
25
}