MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / Close

Method Close

deps/FtpClient/BlockingSocket.cpp:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void 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
167void CBlockingSocket::Connect(LPCSOCKADDR psa) const
168{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected