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

SRT: Refine get_srt_poller to poller.

This commit is contained in:
winlin 2022-05-28 16:53:40 +08:00
parent 21899c5998
commit 6c94e91792
4 changed files with 10 additions and 10 deletions

View file

@ -23,7 +23,7 @@ using namespace std;
SrsSrtConnection::SrsSrtConnection(SRTSOCKET srt_fd)
{
srt_fd_ = srt_fd;
srt_skt_ = new SrsSrtSocket(_srt_eventloop->get_srt_poller(), srt_fd_);
srt_skt_ = new SrsSrtSocket(_srt_eventloop->poller(), srt_fd_);
}
SrsSrtConnection::~SrsSrtConnection()

View file

@ -61,7 +61,7 @@ srs_error_t SrsSrtListener::listen()
return srs_error_wrap(err, "srs_srt_listen");
}
srt_skt_ = new SrsSrtSocket(_srt_eventloop->get_srt_poller(), lfd_);
srt_skt_ = new SrsSrtSocket(_srt_eventloop->poller(), lfd_);
// Accept never timeout.
srt_skt_->set_recv_timeout(ST_UTIME_NO_TIMEOUT);
srt_skt_->set_send_timeout(ST_UTIME_NO_TIMEOUT);

View file

@ -104,14 +104,14 @@ public:
virtual SrsSrtServer* instance();
};
// The srt event loop, run srt poller and wait event happeed.
// Start a coroutine to drive the SRT events with state-threads.
class SrsSrtEventLoop : public ISrsCoroutineHandler
{
public:
SrsSrtEventLoop();
virtual ~SrsSrtEventLoop();
public:
SrsSrtPoller* get_srt_poller() { return srt_poller_; }
SrsSrtPoller* poller() { return srt_poller_; }
public:
srs_error_t initialize();
srs_error_t start();