Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/bitcoin.cpp
Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Lines | bool Run() { | ||||
nConnectTimeout, &proxyConnectionFailed); | nConnectTimeout, &proxyConnectionFailed); | ||||
} else { | } else { | ||||
// no proxy needed (none set for target network) | // no proxy needed (none set for target network) | ||||
sock = CreateSocket(you); | sock = CreateSocket(you); | ||||
if (sock == INVALID_SOCKET) { | if (sock == INVALID_SOCKET) { | ||||
return false; | return false; | ||||
} | } | ||||
// no proxy needed (none set for target network) | // no proxy needed (none set for target network) | ||||
connected = ConnectSocketDirectly(you, sock, nConnectTimeout); | connected = | ||||
ConnectSocketDirectly(you, sock, nConnectTimeout, true); | |||||
} | } | ||||
} | } | ||||
if (!connected) { | if (!connected) { | ||||
// printf("Cannot connect to %s\n", ToString(you).c_str()); | // printf("Cannot connect to %s\n", ToString(you).c_str()); | ||||
CloseSocket(sock); | CloseSocket(sock); | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |