mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
ea9a5f26d9
commit
6993ac226f
12 changed files with 115 additions and 228 deletions
|
@ -47,14 +47,14 @@ class SrsSimpleRtmpClient;
|
|||
* forward the stream to other servers.
|
||||
*/
|
||||
// TODO: FIXME: refine the error log, comments it.
|
||||
class SrsForwarder : public ISrsReusableThread2Handler
|
||||
class SrsForwarder : public ISrsCoroutineHandler
|
||||
{
|
||||
private:
|
||||
// the ep to forward, server[:port].
|
||||
std::string ep_forward;
|
||||
SrsRequest* req;
|
||||
private:
|
||||
SrsReusableThread2* pthread;
|
||||
SrsCoroutine* trd;
|
||||
private:
|
||||
SrsOriginHub* hub;
|
||||
SrsSimpleRtmpClient* sdk;
|
||||
|
@ -93,6 +93,8 @@ public:
|
|||
// interface ISrsReusableThread2Handler.
|
||||
public:
|
||||
virtual int cycle();
|
||||
private:
|
||||
virtual int do_cycle();
|
||||
private:
|
||||
virtual int forward();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue