MCPcopy Create free account
hub / github.com/LUX-Core/lux / EofSent

Method EofSent

src/cryptopp/socketft.cpp:568–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566}
567
568bool SocketSender::EofSent()
569{
570 if (m_resultPending)
571 {
572 WSANETWORKEVENTS events;
573 m_s.CheckAndHandleError_int("WSAEnumNetworkEvents", WSAEnumNetworkEvents(m_s, m_event, &events));
574 if ((events.lNetworkEvents & FD_CLOSE) != FD_CLOSE)
575 throw Socket::Err(m_s, "WSAEnumNetworkEvents (FD_CLOSE not present)", E_FAIL);
576 if (events.iErrorCode[FD_CLOSE_BIT] != 0)
577 throw Socket::Err(m_s, "FD_CLOSE (via WSAEnumNetworkEvents)", events.iErrorCode[FD_CLOSE_BIT]);
578 m_resultPending = false;
579 }
580 return m_lastResult != 0;
581}
582
583void SocketSender::GetWaitObjects(WaitObjectContainer &container, CallStack const& callStack)
584{

Callers 1

DoFlushMethod · 0.80

Calls 2

ErrClass · 0.70

Tested by

no test coverage detected