MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / ~TCP_SocketSSL

Method ~TCP_SocketSSL

SRC/actor/channel/TCP_SocketSSL.cpp:287–301  ·  view source on GitHub ↗

~TCP_SocketSSL(): destructor

Source from the content-addressed store, hash-verified

285// ~TCP_SocketSSL():
286// destructor
287TCP_SocketSSL::~TCP_SocketSSL()
288{
289 // shutdown SSL connection
290 SSL_shutdown(ssl);
291
292#ifdef _WIN32
293 closesocket(sockfd);
294#else
295 close(sockfd);
296#endif
297
298 SSL_free(ssl);
299 SSL_CTX_free(ctx);
300 cleanup_sockets();
301}
302
303
304int

Callers

nothing calls this directly

Calls 2

closeFunction · 0.85
cleanup_socketsFunction · 0.70

Tested by

no test coverage detected