1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

implements the http api/stream framework

This commit is contained in:
winlin 2014-03-27 13:25:08 +08:00
parent ab3c6c92a0
commit 6913efe127
9 changed files with 107 additions and 47 deletions

View file

@ -36,6 +36,7 @@ class SrsServer;
class SrsConnection
{
protected:
char* ip;
SrsServer* server;
st_netfd_t stfd;
int connection_id;
@ -46,6 +47,8 @@ public:
virtual int start();
protected:
virtual int do_cycle() = 0;
protected:
virtual int get_peer_ip();
private:
virtual void cycle();
static void* cycle_thread(void* arg);