forked from p308945/MyNetWorkLib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (30 loc) · 656 Bytes
/
main.cpp
File metadata and controls
33 lines (30 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* =====================================================================================
*
* Filename: main.cpp
*
* Description: main
*
* Version: 1.0
* Created: 10/11/2015 04:49:58 PM
* Revision: none
* Compiler: gcc
*
* Author: huangyun (hy), 895175589@qq.com
* Organization:
*
* =====================================================================================
*/
#include "Server.h"
int main()
{
MyNameSpace::Server s;
if (!s.init(20000))
{
std::cerr<<__FUNCTION__<<"("<<__LINE__<<"): server init fail"<<std::endl;
exit(1);
}
s.mainLoop();
s.fini();
return 0;
}