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

Refine code, use SrsConnectionManager

This commit is contained in:
winlin 2020-09-11 18:55:18 +08:00
parent 33f1cb87a2
commit 66c680edb1
8 changed files with 154 additions and 110 deletions

View file

@ -1678,6 +1678,14 @@ vector<SrsUdpMuxSocket*> SrsRtcConnection::peer_addresses()
return addresses;
}
string SrsRtcConnection::remote_ip()
{
if (sendonly_skt) {
return sendonly_skt->get_peer_ip();
}
return "";
}
void SrsRtcConnection::switch_to_context()
{
_srs_context->set_id(cid_);