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:
parent
ab3c6c92a0
commit
6913efe127
9 changed files with 107 additions and 47 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue