Closes the client TCP connection. If there is an SSL connection, this is shutdown and then the handle for the SSL is freed. Arguments: None Returns: None
| Return Type | Function name | Arguments |
|---|---|---|
| void | hzTcpClient::Close | (void) |
Declared in file: hzTcpClient.h
Defined in file : hzTcpClient.cpp
Function Logic:
Function body:
void hzTcpClient::Close (void)
{
// Closes the client TCP connection. If there is an SSL connection, this is shutdown and then the handle for the SSL is freed.
//
// Arguments: None
// Returns: None
if (m_pSSL)
{
SSL_shutdown(m_pSSL) ;
SSL_free(m_pSSL) ;
m_pSSL = 0;
}
if (m_nSock)
close(m_nSock) ;
m_nSock = 0;
}