Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 2,068 Lines • ▼ Show 20 Lines | #endif | ||||
} | } | ||||
if (::bind(hListenSocket, (struct sockaddr *)&sockaddr, len) == | if (::bind(hListenSocket, (struct sockaddr *)&sockaddr, len) == | ||||
SOCKET_ERROR) { | SOCKET_ERROR) { | ||||
int nErr = WSAGetLastError(); | int nErr = WSAGetLastError(); | ||||
if (nErr == WSAEADDRINUSE) { | if (nErr == WSAEADDRINUSE) { | ||||
strError = strprintf(_("Unable to bind to %s on this computer. %s " | strError = strprintf(_("Unable to bind to %s on this computer. %s " | ||||
"is probably already running."), | "is probably already running."), | ||||
addrBind.ToString(), _(PACKAGE_NAME)); | addrBind.ToString(), PACKAGE_NAME); | ||||
} else { | } else { | ||||
strError = strprintf(_("Unable to bind to %s on this computer " | strError = strprintf(_("Unable to bind to %s on this computer " | ||||
"(bind returned error %s)"), | "(bind returned error %s)"), | ||||
addrBind.ToString(), NetworkErrorString(nErr)); | addrBind.ToString(), NetworkErrorString(nErr)); | ||||
} | } | ||||
LogPrintf("%s\n", strError); | LogPrintf("%s\n", strError); | ||||
CloseSocket(hListenSocket); | CloseSocket(hListenSocket); | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 757 Lines • Show Last 20 Lines |