houxiao
2017-01-10 91bcfe2c50c8732c1ccf792ca1f8964966808352
RtspFace/ev_server.h
@@ -3,6 +3,7 @@
#include <stddef.h>
#include <stdint.h>
#include "ev_proto.h"
#define SERVER_PORT 5432
#define REUSEADDR_ON 1
@@ -25,6 +26,13 @@
      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);
@@ -32,4 +40,7 @@
int server_main(int argc, char **argv);
void ev_send_packet(EVClientStub& client);
void ev_send_status_packet(EVClientStub& client, EVPStatus::EVPS status);
#endif