| | |
| | |
|
| | | #include <stddef.h>
|
| | | #include <stdint.h>
|
| | | #include "ev_proto.h"
|
| | |
|
| | | #define SERVER_PORT 5432
|
| | | #define REUSEADDR_ON 1
|
| | |
| | | sendBuff(nullptr), sendBuffSize(0), deleteSendBuff(false)
|
| | | {
|
| | | }
|
| | | |
| | | EVClientStub(const uint8_t* _recvBuff, size_t _recvBuffSize) : |
| | | id(-1), |
| | | recvBuff(_recvBuff), recvBuffSize(_recvBuffSize), |
| | | sendBuff(nullptr), sendBuffSize(0), deleteSendBuff(false)
|
| | | {
|
| | | }
|
| | | };
|
| | |
|
| | | typedef bool (*evclient_proc_t)(EVClientStub& client);
|
| | |
| | |
|
| | | int server_main(int argc, char **argv);
|
| | |
|
| | | void ev_send_packet(EVClientStub& client);
|
| | | void ev_send_status_packet(EVClientStub& client, EVPStatus::EVPS status);
|
| | |
|
| | | #endif
|