MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / getLastError

Function getLastError

Engine/source/platform/platformNet.cpp:221–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 static ReservedSocketList<SOCKET> smReservedSocketList;
220
221 Net::Error getLastError()
222 {
223#if defined(TORQUE_USE_WINSOCK)
224 S32 err = WSAGetLastError();
225 switch (err)
226 {
227 case 0:
228 return Net::NoError;
229 case WSAEWOULDBLOCK:
230 return Net::WouldBlock;
231 default:
232 return Net::UnknownError;
233 }
234#else
235 int theError = errno;
236 if (errno == EAGAIN)
237 return Net::WouldBlock;
238 if (errno == 0)
239 return Net::NoError;
240 if (errno == EINPROGRESS)
241 return Net::WouldBlock;
242
243 return Net::UnknownError;
244#endif
245 }
246
247 S32 getDefaultGameProtocol()
248 {

Callers 15

getSocketAddressFunction · 0.70
openPortMethod · 0.70
sendtoMethod · 0.70
processMethod · 0.70
closeSocketMethod · 0.70
connectMethod · 0.70
listenMethod · 0.70
bindAddressMethod · 0.70
setBufferSizeMethod · 0.70
setBroadcastMethod · 0.70
setBlockingMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected