---------------------------------------------------------------------------
| 92 | } |
| 93 | //--------------------------------------------------------------------------- |
| 94 | DWORD MSocket::ReadLength(void) |
| 95 | { |
| 96 | if( !handle ) { Error = true; if( Exceptions ) throw 0; return !Error; } |
| 97 | // |
| 98 | DWORD bytes; |
| 99 | Error = ioctlsocket(handle, FIONREAD, &bytes); |
| 100 | errcode = 0; |
| 101 | if( Error==SOCKET_ERROR ) errcode = WSAGetLastError(); |
| 102 | // |
| 103 | if( Error ) { bytes = 0L; if( Exceptions ) throw 0; } |
| 104 | return bytes; |
| 105 | } |
| 106 | //--------------------------------------------------------------------------- |
| 107 | bool MSocket::Poll(bool bread, bool bwrite, bool berror, long msec) |
| 108 | { |
nothing calls this directly
no outgoing calls
no test coverage detected