mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-24 22:26:52 -05:00
* changed inet_aton into bdnet_inet_aton for windows compatibility
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3304 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b5461e0544
commit
0049549eb7
@ -62,7 +62,7 @@ bdStore::bdStore(std::string file, bdDhtFunctions *fns)
|
|||||||
{
|
{
|
||||||
if (2 == sscanf(line, "%s %hd", addr_str, &port))
|
if (2 == sscanf(line, "%s %hd", addr_str, &port))
|
||||||
{
|
{
|
||||||
if (inet_aton(addr_str, &(addr.sin_addr)))
|
if (bdnet_inet_aton(addr_str, &(addr.sin_addr)))
|
||||||
{
|
{
|
||||||
addr.sin_port = htons(port);
|
addr.sin_port = htons(port);
|
||||||
bdPeer peer;
|
bdPeer peer;
|
||||||
|
@ -336,7 +336,7 @@ int UdpLayer::openSocket()
|
|||||||
|
|
||||||
|
|
||||||
#ifdef UDP_LOOPBACK_TESTING
|
#ifdef UDP_LOOPBACK_TESTING
|
||||||
inet_aton("127.0.0.1", &(laddr.sin_addr));
|
bdnet_inet_aton("127.0.0.1", &(laddr.sin_addr));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef OPEN_UNIVERSAL_PORT
|
#ifdef OPEN_UNIVERSAL_PORT
|
||||||
|
Loading…
Reference in New Issue
Block a user