mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1488, add test and improve coverage for parsing client ip.
This commit is contained in:
parent
316cab794a
commit
2115d5d22a
8 changed files with 88 additions and 44 deletions
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include <srs_http_stack.hpp>
|
||||
|
||||
class SrsConnection;
|
||||
class ISrsConnection;
|
||||
class SrsFastStream;
|
||||
class SrsRequest;
|
||||
class ISrsReader;
|
||||
|
@ -103,7 +103,7 @@ private:
|
|||
bool infinite_chunked;
|
||||
// Use a buffer to read and send ts file.
|
||||
// The transport connection, can be NULL.
|
||||
SrsConnection* owner_conn;
|
||||
ISrsConnection* owner_conn;
|
||||
private:
|
||||
uint8_t _method;
|
||||
uint16_t _status;
|
||||
|
@ -143,8 +143,8 @@ public:
|
|||
virtual srs_error_t set_url(std::string url, bool allow_jsonp);
|
||||
public:
|
||||
// Get the owner connection, maybe NULL.
|
||||
virtual SrsConnection* connection();
|
||||
virtual void set_connection(SrsConnection* conn);
|
||||
virtual ISrsConnection* connection();
|
||||
virtual void set_connection(ISrsConnection* conn);
|
||||
public:
|
||||
virtual uint8_t method();
|
||||
virtual uint16_t status_code();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue