| 566 | } |
| 567 | |
| 568 | bool 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 | |
| 583 | void SocketSender::GetWaitObjects(WaitObjectContainer &container, CallStack const& callStack) |
| 584 | { |
no test coverage detected