| 89 | |
| 90 | |
| 91 | void cSocket::ShutdownReadWrite(void) |
| 92 | { |
| 93 | #ifdef _WIN32 |
| 94 | int res = shutdown(m_Socket, SD_BOTH); |
| 95 | #else |
| 96 | int res = shutdown(m_Socket, SHUT_RDWR); |
| 97 | #endif |
| 98 | if (res != 0) |
| 99 | { |
| 100 | LOGWARN("%s: Error shutting down socket %d (%s): %d (%s)", |
| 101 | __FUNCTION__, m_Socket, m_IPString.c_str(), this->GetLastError(), GetLastErrorString().c_str() |
| 102 | ); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | |
| 107 |
no test coverage detected