mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Squash: Move GB28181 to feature/gb28181. 5.0.4
This commit is contained in:
parent
49826081b1
commit
efdbf37255
39 changed files with 50 additions and 9885 deletions
|
@ -19,8 +19,6 @@
|
|||
#include <srs_app_listener.hpp>
|
||||
#include <srs_app_conn.hpp>
|
||||
#include <srs_service_st.hpp>
|
||||
#include <srs_app_gb28181.hpp>
|
||||
#include <srs_app_gb28181_sip.hpp>
|
||||
#include <srs_app_hourglass.hpp>
|
||||
#include <srs_app_hybrid.hpp>
|
||||
|
||||
|
@ -38,8 +36,6 @@ class SrsTcpListener;
|
|||
class SrsAppCasterFlv;
|
||||
class SrsRtspCaster;
|
||||
class SrsResourceManager;
|
||||
class SrsGb28181Caster;
|
||||
|
||||
|
||||
// The listener type for server to identify the connection,
|
||||
// that is, use different type to process the connection.
|
||||
|
@ -57,10 +53,6 @@ enum SrsListenerType
|
|||
SrsListenerRtsp = 4,
|
||||
// TCP stream, FLV stream over HTTP.
|
||||
SrsListenerFlv = 5,
|
||||
// UDP stream, gb28181 ps stream over rtp,
|
||||
SrsListenerGb28181RtpMux = 6,
|
||||
// UDP gb28181 sip server
|
||||
SrsListenerGb28181Sip = 7,
|
||||
// HTTPS api,
|
||||
SrsListenerHttpsApi = 8,
|
||||
// HTTPS stream,
|
||||
|
@ -152,33 +144,6 @@ public:
|
|||
virtual ~SrsUdpCasterListener();
|
||||
};
|
||||
|
||||
#ifdef SRS_GB28181
|
||||
|
||||
// A UDP gb28181 listener, for sip and rtp stream mux server.
|
||||
class SrsGb28181Listener : public SrsUdpStreamListener
|
||||
{
|
||||
public:
|
||||
SrsGb28181Listener(SrsServer* svr, SrsListenerType t, SrsConfDirective* c);
|
||||
virtual ~SrsGb28181Listener();
|
||||
};
|
||||
|
||||
class SrsGb28181TcpListener : public SrsListener, public ISrsTcpHandler
|
||||
{
|
||||
private:
|
||||
SrsTcpListener* listener;
|
||||
SrsGb28181Caster* caster;
|
||||
public:
|
||||
SrsGb28181TcpListener(SrsServer* svr, SrsListenerType t, SrsConfDirective* c);
|
||||
virtual ~SrsGb28181TcpListener();
|
||||
public:
|
||||
virtual srs_error_t listen(std::string i, int p);
|
||||
// Interface ISrsTcpHandler
|
||||
public:
|
||||
virtual srs_error_t on_tcp_client(srs_netfd_t stfd);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// Convert signal to io,
|
||||
// @see: st-1.9/docs/notes.html
|
||||
class SrsSignalManager : public ISrsCoroutineHandler
|
||||
|
@ -341,9 +306,6 @@ private:
|
|||
virtual srs_error_t listen_http_stream();
|
||||
virtual srs_error_t listen_https_stream();
|
||||
virtual srs_error_t listen_stream_caster();
|
||||
#ifdef SRS_GB28181
|
||||
virtual srs_error_t listen_gb28181_sip(SrsConfDirective* c);
|
||||
#endif
|
||||
// Close the listeners for specified type,
|
||||
// Remove the listen object from manager.
|
||||
virtual void close_listeners(SrsListenerType type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue