| 155 | } |
| 156 | |
| 157 | void CBlockingSocket::Close() |
| 158 | { |
| 159 | if( m_hSocket != INVALID_SOCKET && closesocket(m_hSocket)==SOCKET_ERROR ) |
| 160 | { |
| 161 | // should be OK to close if closed already |
| 162 | throw CBlockingSocketException(_T("Close")); |
| 163 | } |
| 164 | m_hSocket = INVALID_SOCKET; |
| 165 | } |
| 166 | |
| 167 | void CBlockingSocket::Connect(LPCSOCKADDR psa) const |
| 168 | { |
nothing calls this directly
no test coverage detected