MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / InitSocket

Method InitSocket

src/Nazara/Network/RUdpConnection.cpp:318–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316 */
317
318 bool RUdpConnection::InitSocket(NetProtocol protocol)
319 {
320 CallOnExit updateLastError([this]
321 {
322 m_lastError = m_socket.GetLastError();
323 });
324
325 if (!m_socket.Create(protocol))
326 return false;
327
328 m_socket.EnableBlocking(false);
329 return true;
330 }
331
332 /*!
333 * \brief Processes the acks

Callers

nothing calls this directly

Calls 3

EnableBlockingMethod · 0.80
GetLastErrorMethod · 0.45
CreateMethod · 0.45

Tested by

no test coverage detected