| 165 | } |
| 166 | |
| 167 | void CBlockingSocket::Connect(LPCSOCKADDR psa) const |
| 168 | { |
| 169 | ASSERT( psa != NULL ); |
| 170 | ASSERT( m_hSocket!=INVALID_SOCKET ); |
| 171 | // should timeout by itself |
| 172 | if( connect(m_hSocket, psa, sizeof(SOCKADDR))==SOCKET_ERROR ) |
| 173 | { |
| 174 | throw CBlockingSocketException(_T("Connect")); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | int CBlockingSocket::Write(const char* pch, int nSize, int nSecs) const |
| 179 | { |
no test coverage detected