xuxiuxi
2017-05-11 109ffe9a777658936a38d0c146579a67c60a0d17
FaceServer/ev_server.h
@@ -5,9 +5,11 @@
#include <stdint.h>
#include "ev_proto.h"
#ifndef SERVER_PORT
#define SERVER_PORT 5432
#endif
#define REUSEADDR_ON 1
#define CLIENT_BUFFER_MAX 100*1024 // 100KB
#define CLIENT_BUFFER_MAX 1*1024*1024 // 1MB
#define CLIENT_READ_TIMES_MAX 100
#define CLIENT_MAX 100 // max count of clients connected //#todo not support
@@ -41,6 +43,7 @@
//#define USER_DEFINE_EVCLIENT_PROC
int server_main(int argc, char **argv);
void server_stop();
void ev_send_packet(EVClientStub& client);
void ev_send_status_packet(EVClientStub& client, EVPStatus::EVPS status);