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
|
@ -26,12 +26,17 @@
|
|||
|
||||
#include <srs_core.hpp>
|
||||
|
||||
#include <string>
|
||||
|
||||
// The connection interface for all HTTP/RTMP/RTSP object.
|
||||
class ISrsConnection
|
||||
{
|
||||
public:
|
||||
ISrsConnection();
|
||||
virtual ~ISrsConnection();
|
||||
public:
|
||||
// Get remote ip address.
|
||||
virtual std::string remote_ip() = 0;
|
||||
};
|
||||
|
||||
// The manager for connection.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue