mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
use u_short
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@653 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+6
-3
@@ -21,6 +21,9 @@ using std::pair;
|
||||
* Author: imaginos <imaginos@imaginos.net>
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.22 2006/02/13 06:01:57 imaginos
|
||||
* use u_short
|
||||
*
|
||||
* Revision 1.21 2005/09/26 23:09:05 prozacx
|
||||
* Removed const from args in a bunch of hooks
|
||||
*
|
||||
@@ -127,14 +130,14 @@ public:
|
||||
m_pModule = NULL;
|
||||
EnableReadLine();
|
||||
}
|
||||
CSChatSock( const CS_STRING & sHost, int iPort, int iTimeout = 60 )
|
||||
CSChatSock( const CS_STRING & sHost, u_short iPort, int iTimeout = 60 )
|
||||
: Csock( sHost, iPort, iTimeout )
|
||||
{
|
||||
m_pModule = NULL;
|
||||
EnableReadLine();
|
||||
}
|
||||
|
||||
virtual Csock *GetSockObj( const CS_STRING & sHostname, int iPort )
|
||||
virtual Csock *GetSockObj( const CS_STRING & sHostname, u_short iPort )
|
||||
{
|
||||
CSChatSock *p = new CSChatSock( sHostname, iPort );
|
||||
p->SetModule( m_pModule );
|
||||
@@ -143,7 +146,7 @@ public:
|
||||
return( p );
|
||||
}
|
||||
|
||||
virtual bool ConnectionFrom( const CS_STRING & sHost, int iPort )
|
||||
virtual bool ConnectionFrom( const CS_STRING & sHost, u_short iPort )
|
||||
{
|
||||
Close(); // close the listener after the first connection
|
||||
return( true );
|
||||
|
||||
Reference in New Issue
Block a user