-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
38 lines (32 loc) · 832 Bytes
/
main.cpp
File metadata and controls
38 lines (32 loc) · 832 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
34
35
36
37
38
#include "Connection.h"
#include "Log.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <thread>
#include <mutex>
using namespace std;
#define JUDGE_SERVER_PORT 60001
void ShowWelcomeMessage()
{
cout<<"Welcome to use Programing contest controller system! I'm Yui!"<<endl;
cout<<"Now I'll serve the contest as soon as possible!"<<endl;
cout<<endl;
cout<<"Yui-Home : Yui-Project Judge Network Server."<<endl;
cout<<"Yui-Project 2017 / HC TECH 2017"<<endl;
cout<<endl;
}
int main()
{
if(!log_init()) return -1;
log("Log System Started Successfully.");
ShowWelcomeMessage();
log("Starting Server Socket...");
ServerListener nsl(JUDGE_SERVER_PORT,100);
if(!nsl.ready())
{
log("Failed to start ServerSocket.");
}
return 0;
}