mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user