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 TypeFunction nameArguments
voidhzTcpClient::Close(void)

Declared in file: hzTcpClient.h
Defined in file : hzTcpClient.cpp

Function Logic:

0:START 1:unknown 2:items items m_pSSL 3:unknown 4:items 5:m_nSock 6: No text

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;
}