mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: Hide srt implements from API.
This commit is contained in:
parent
d39ec3cf45
commit
6009395c10
9 changed files with 157 additions and 127 deletions
|
|
@ -50,7 +50,7 @@ public:
|
|||
virtual srs_error_t set_srt_opt();
|
||||
// Interface ISrsSrtHandler
|
||||
public:
|
||||
virtual srs_error_t on_srt_client(SRTSOCKET srt_fd);
|
||||
virtual srs_error_t on_srt_client(srs_srt_t srt_fd);
|
||||
};
|
||||
|
||||
// SRS SRT server, initialize and listen, start connection service thread, destroy client.
|
||||
|
|
@ -78,9 +78,9 @@ public:
|
|||
// @param type, the client type, used to create concrete connection,
|
||||
// for instance SRT connection to serve client.
|
||||
// @param srt_fd, the client fd in srt boxed, the underlayer fd.
|
||||
virtual srs_error_t accept_srt_client(SrsSrtListenerType type, SRTSOCKET srt_fd);
|
||||
virtual srs_error_t accept_srt_client(SrsSrtListenerType type, srs_srt_t srt_fd);
|
||||
private:
|
||||
virtual srs_error_t fd_to_resource(SrsSrtListenerType type, SRTSOCKET srt_fd, ISrsStartableConneciton** pr);
|
||||
virtual srs_error_t fd_to_resource(SrsSrtListenerType type, srs_srt_t srt_fd, ISrsStartableConneciton** pr);
|
||||
// Interface ISrsResourceManager
|
||||
public:
|
||||
// A callback for connection to remove itself.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue