MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / BeginReceive

Method BeginReceive

DebugView++Lib/SocketReader.cpp:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58int SocketReader::BeginReceive()
59{
60 assert(!m_busy);
61 DWORD count;
62 DWORD flags = 0;
63 m_fromLen = sizeof(m_from);
64 if (Win32::WSARecvFrom(m_socket, m_wsaBuf, 1, &count, &flags, m_from, m_fromLen, &m_overlapped, nullptr))
65 return count;
66
67 m_busy = true;
68 return -1;
69}
70
71int SocketReader::CompleteReceive()
72{

Callers

nothing calls this directly

Calls 1

WSARecvFromFunction · 0.85

Tested by

no test coverage detected