Pulled in changes for graceful Close()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@494 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-09-15 04:11:41 +00:00
parent 58edca82f8
commit e41a7f46f9
2 changed files with 19 additions and 8 deletions

View File

@@ -1357,8 +1357,10 @@ u_short Csock::GetLocalPort()
u_short Csock::GetPort() { return( m_iport ); }
void Csock::SetPort( u_short iPort ) { m_iport = iPort; }
void Csock::Close() { m_bClosed = true; }
bool Csock::isClosed() { return( m_bClosed ); }
void Csock::Close( ECloseType eCloseType )
{
m_eCloseType = eCloseType;
}
void Csock::BlockIO( bool bBLOCK ) { m_bBLOCK = bBLOCK; }
void Csock::NonBlockingIO()
@@ -1786,7 +1788,7 @@ void Csock::Init( const CS_STRING & sHostname, u_short iport, int itimeout )
m_shostname = sHostname;
m_iTcount = 0;
m_sbuffer.clear();
m_bClosed = false;
m_eCloseType = CLT_DONT;
m_bBLOCK = true;
m_iMethod = SSL23;
m_sCipherType = "ALL";