MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / close

Method close

cpp/src/platform/HttpClient.cpp:420–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420void TcpSocket::close
421(
422)
423{
424 if(!SOCKETVALID(_s))
425 return;
426
427 traceprint("TcpSocket::close\n");
428
429 _OnCloseInternal();
430
431#ifdef MINIHTTP_USE_POLARSSL
432 if(_sslctx)
433 ((SSLCtx*)_sslctx)->reset();
434 net_close(_s);
435 shutdownSSL();
436#else
437# ifdef _WIN32
438 ::closesocket((SOCKET)_s);
439# else
440 ::close(_s);
441# endif
442#endif
443
444 _s = INVALID_SOCKET;
445 _recvSize = 0;
446}
447
448void TcpSocket::_OnCloseInternal
449(

Callers 1

FileCopyMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected