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

add srt server file

This commit is contained in:
runner365 2020-01-11 23:05:10 +08:00
parent 1f493cc037
commit aeee3011ef
9 changed files with 177 additions and 9 deletions

View file

@ -36,6 +36,7 @@
#include <srs_app_listener.hpp>
#include <srs_app_conn.hpp>
#include <srs_service_st.hpp>
#include "../srt/srt_server.hpp"
class SrsServer;
class SrsConnection;
@ -209,6 +210,11 @@ private:
SrsHttpHeartbeat* http_heartbeat;
SrsIngester* ingester;
SrsCoroutineManager* conn_manager;
private:
//srt server
SRT_SERVER_PTR srt_ptr;
private:
// The pid file fd, lock the file write when server is running.
// @remark the init.d script should cleanup the pid file, when stop service,
@ -279,6 +285,8 @@ private:
virtual srs_error_t listen_http_api();
virtual srs_error_t listen_http_stream();
virtual srs_error_t listen_stream_caster();
//start listen srt udp port
virtual srs_error_t listen_srt();
// Close the listeners for specified type,
// Remove the listen object from manager.
virtual void close_listeners(SrsListenerType type);