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

for #250, use udp packet handler.

This commit is contained in:
winlin 2015-01-30 00:04:20 +08:00
parent 35ab0ea627
commit a384cc400a
3 changed files with 35 additions and 32 deletions

View file

@ -45,9 +45,7 @@ class SrsIngester;
class SrsHttpHeartbeat;
class SrsKbps;
class SrsConfDirective;
#ifdef SRS_AUTO_STREAM_CASTER
class SrsMpegtsOverUdp;
#endif
class ISrsUdpHandler;
// listener type for server to identify the connection,
// that is, use different type to process the connection.
@ -96,7 +94,7 @@ class SrsUdpListener : public SrsListener
private:
char* buf;
int nb_buf;
SrsMpegtsOverUdp* caster;
ISrsUdpHandler* caster;
public:
SrsUdpListener(SrsServer* server, SrsListenerType type, SrsConfDirective* c);
virtual ~SrsUdpListener();