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

Function getLastError

Engine/source/platform/platformNet.cpp:175–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 static ReservedSocketList<SOCKET> smReservedSocketList;
174
175 Net::Error getLastError()
176 {
177#if defined(TORQUE_USE_WINSOCK)
178 S32 err = WSAGetLastError();
179 switch (err)
180 {
181 case 0:
182 return Net::NoError;
183 case WSAEWOULDBLOCK:
184 return Net::WouldBlock;
185 default:
186 return Net::UnknownError;
187 }
188#else
189 int theError = errno;
190 if (errno == EAGAIN)
191 return Net::WouldBlock;
192 if (errno == 0)
193 return Net::NoError;
194 if (errno == EINPROGRESS)
195 return Net::WouldBlock;
196
197 return Net::UnknownError;
198#endif
199 }
200
201 S32 getDefaultGameProtocol()
202 {

Callers 15

getSocketAddressFunction · 0.85
openConnectToMethod · 0.85
openPortMethod · 0.85
sendtoMethod · 0.85
processMethod · 0.85
closeSocketMethod · 0.85
connectMethod · 0.85
listenMethod · 0.85
bindAddressMethod · 0.85
setBufferSizeMethod · 0.85
setBroadcastMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected