1
0
Fork 0
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:
winlin 2019-12-26 12:07:52 +08:00
parent 316cab794a
commit 2115d5d22a
8 changed files with 88 additions and 44 deletions

View file

@ -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.