api: Rename addr to remote_address for clarity
This commit is contained in:
parent
7f5d60eacb
commit
27dc0db42e
|
@ -41,10 +41,10 @@ namespace uvgrtp {
|
|||
* \return RTP session object
|
||||
*
|
||||
* \retval uvgrtp::session On success
|
||||
* \retval nullptr If "addr" is empty
|
||||
* \retval nullptr If "remote_addr" is empty
|
||||
* \retval nullptr If memory allocation failed
|
||||
*/
|
||||
uvgrtp::session *create_session(std::string addr);
|
||||
uvgrtp::session *create_session(std::string remote_addr);
|
||||
|
||||
/**
|
||||
* \brief Create a new RTP session
|
||||
|
|
|
@ -33,12 +33,12 @@ uvgrtp::context::~context()
|
|||
#endif
|
||||
}
|
||||
|
||||
uvgrtp::session *uvgrtp::context::create_session(std::string address)
|
||||
uvgrtp::session *uvgrtp::context::create_session(std::string remote_addr)
|
||||
{
|
||||
if (address == "")
|
||||
if (remote_addr == "")
|
||||
return nullptr;
|
||||
|
||||
return new uvgrtp::session(address);
|
||||
return new uvgrtp::session(remote_addr);
|
||||
}
|
||||
|
||||
uvgrtp::session *uvgrtp::context::create_session(std::string remote_addr, std::string local_addr)
|
||||
|
|
Loading…
Reference in New Issue