xuxiuxi
2017-05-11 109ffe9a777658936a38d0c146579a67c60a0d17
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,11 +26,23 @@
      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);
extern evclient_proc_t evclient_proc;
//#define USER_DEFINE_EVCLIENT_PROC
int server_main(int argc, char **argv);
void ev_send_packet(EVClientStub& client);
void ev_send_status_packet(EVClientStub& client, EVPStatus::EVPS status);
#endif