mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 22:40:36 -04:00
Added thread safe function for inet_ntoa in libbitdht.
Used the existing thread safe function for inet_ntoa in libretroshare. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5033 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
117d10eb44
commit
0b1126babf
10 changed files with 24 additions and 9 deletions
|
@ -156,7 +156,7 @@ std::string p3BitDht::getUdpAddressString()
|
|||
|
||||
if (mDhtStunner->externalAddr(extAddr, extStable))
|
||||
{
|
||||
out << " DhtExtAddr: " << inet_ntoa(extAddr.sin_addr);
|
||||
out << " DhtExtAddr: " << rs_inet_ntoa(extAddr.sin_addr);
|
||||
out << ":" << ntohs(extAddr.sin_port);
|
||||
|
||||
if (extStable)
|
||||
|
@ -174,7 +174,7 @@ std::string p3BitDht::getUdpAddressString()
|
|||
}
|
||||
if (mProxyStunner->externalAddr(extAddr, extStable))
|
||||
{
|
||||
out << " ProxyExtAddr: " << inet_ntoa(extAddr.sin_addr);
|
||||
out << " ProxyExtAddr: " << rs_inet_ntoa(extAddr.sin_addr);
|
||||
out << ":" << ntohs(extAddr.sin_port);
|
||||
|
||||
if (extStable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue