MCPcopy Create free account
hub / github.com/bwapi/bwapi / setBlockingMode

Method setBlockingMode

bwapi/SNP_DirectIP/SNP/UDPSocket.cpp:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void UDPSocket::setBlockingMode(bool block)
103{
104 u_long nonblock = !block;
105 if(::ioctlsocket(_s, FIONBIO, &nonblock) == SOCKET_ERROR)
106 {
107 throw GeneralException("::ioctlsocket failed");
108 }
109}
110
111int UDPSocket::getState() const
112{

Callers 1

rebindFunction · 0.80

Calls 1

GeneralExceptionClass · 0.85

Tested by

no test coverage detected