mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 16:02:08 +02:00
get windows error before calling io
This commit is contained in:
parent
d7f6685022
commit
bd446192e8
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ void Socket::bind(const QHostAddress& address, quint16 port) {
|
|||
auto sd = _udpSocket.socketDescriptor();
|
||||
int val = 0; // false
|
||||
if (setsockopt(sd, IPPROTO_IP, IP_DONTFRAGMENT, (const char *)&val, sizeof(val))) {
|
||||
qCWarning(networking) << "Socket::bind Cannot setsockopt IP_DONTFRAGMENT" << WSAGetLastError();
|
||||
int wsaError = WSAGetLastError();
|
||||
qCWarning(networking) << "Socket::bind Cannot setsockopt IP_DONTFRAGMENT" << wsaError;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue