mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
use SrsTcpClient instead raw socket.
This commit is contained in:
parent
a9bb6061c3
commit
24b3899972
16 changed files with 107 additions and 153 deletions
|
@ -47,6 +47,7 @@ class SrsMessageQueue;
|
|||
class ISrsProtocolReaderWriter;
|
||||
class SrsKbps;
|
||||
class SrsLbRoundRobin;
|
||||
class SrsTcpClient;
|
||||
|
||||
/**
|
||||
* the state of edge, auto machine
|
||||
|
@ -85,8 +86,7 @@ private:
|
|||
SrsPlayEdge* _edge;
|
||||
SrsRequest* _req;
|
||||
SrsReusableThread2* pthread;
|
||||
st_netfd_t stfd;
|
||||
ISrsProtocolReaderWriter* io;
|
||||
SrsTcpClient* transport;
|
||||
SrsKbps* kbps;
|
||||
SrsRtmpClient* client;
|
||||
SrsLbRoundRobin* lb;
|
||||
|
@ -103,7 +103,6 @@ public:
|
|||
virtual int cycle();
|
||||
private:
|
||||
virtual int ingest();
|
||||
virtual void close_underlayer_socket();
|
||||
virtual int connect_server(std::string& ep_server, int& ep_port);
|
||||
virtual int connect_app(std::string ep_server, int ep_port);
|
||||
virtual int process_publish_message(SrsCommonMessage* msg);
|
||||
|
@ -121,8 +120,7 @@ private:
|
|||
SrsPublishEdge* _edge;
|
||||
SrsRequest* _req;
|
||||
SrsReusableThread2* pthread;
|
||||
st_netfd_t stfd;
|
||||
ISrsProtocolReaderWriter* io;
|
||||
SrsTcpClient* transport;
|
||||
SrsKbps* kbps;
|
||||
SrsRtmpClient* client;
|
||||
SrsLbRoundRobin* lb;
|
||||
|
@ -152,7 +150,6 @@ public:
|
|||
public:
|
||||
virtual int proxy(SrsCommonMessage* msg);
|
||||
private:
|
||||
virtual void close_underlayer_socket();
|
||||
virtual int connect_server(std::string& ep_server, int& ep_port);
|
||||
virtual int connect_app(std::string ep_server, int ep_port);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue