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:
parent
33f1cb87a2
commit
66c680edb1
8 changed files with 154 additions and 110 deletions
|
@ -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_);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue