mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
TCP: Log the remote port for client.
This commit is contained in:
parent
e01b98c91e
commit
81a7c252d6
14 changed files with 68 additions and 39 deletions
|
@ -50,8 +50,9 @@ protected:
|
|||
IConnectionManager* manager;
|
||||
// The underlayer st fd handler.
|
||||
srs_netfd_t stfd;
|
||||
// The ip of client.
|
||||
// The ip and port of client.
|
||||
std::string ip;
|
||||
int port;
|
||||
// The underlayer socket.
|
||||
SrsStSocket* skt;
|
||||
// The connection total kbps.
|
||||
|
@ -64,7 +65,7 @@ protected:
|
|||
// for current connection to log self create time and calculate the living time.
|
||||
int64_t create_time;
|
||||
public:
|
||||
SrsConnection(IConnectionManager* cm, srs_netfd_t c, std::string cip);
|
||||
SrsConnection(IConnectionManager* cm, srs_netfd_t c, std::string cip, int cport);
|
||||
virtual ~SrsConnection();
|
||||
// Interface ISrsKbpsDelta
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue