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

refine code, ignore client when no ip.

This commit is contained in:
winlin 2015-12-24 17:25:05 +08:00
parent 49308dddfb
commit a7bf4bfda5
10 changed files with 97 additions and 80 deletions

View file

@ -350,7 +350,7 @@ private:
SrsHttpParser* parser;
ISrsHttpServeMux* http_mux;
public:
SrsHttpConn(IConnectionManager* cm, st_netfd_t fd, ISrsHttpServeMux* m);
SrsHttpConn(IConnectionManager* cm, st_netfd_t fd, ISrsHttpServeMux* m, std::string cip);
virtual ~SrsHttpConn();
// interface IKbpsDelta
public:
@ -381,7 +381,7 @@ private:
class SrsResponseOnlyHttpConn : public SrsHttpConn
{
public:
SrsResponseOnlyHttpConn(IConnectionManager* cm, st_netfd_t fd, ISrsHttpServeMux* m);
SrsResponseOnlyHttpConn(IConnectionManager* cm, st_netfd_t fd, ISrsHttpServeMux* m, std::string cip);
virtual ~SrsResponseOnlyHttpConn();
public:
virtual int on_got_http_message(ISrsHttpMessage* msg);