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:
imaginos
2006-02-13 06:01:57 +00:00
parent 12cc6af48c
commit 380023e853
2 changed files with 9 additions and 6 deletions
+3 -3
View File
@@ -115,7 +115,7 @@ public:
m_iParentFD = -1;
SetSockName( ZNCSOCK );
}
CPerlSock( const CS_STRING & sHost, int iPort, int iTimeout = 60 )
CPerlSock( const CS_STRING & sHost, u_short iPort, int iTimeout = 60 )
: Csock( sHost, iPort, iTimeout )
{
m_iParentFD = -1;
@@ -126,7 +126,7 @@ public:
// # OnSockDestroy( $sockhandle )
virtual ~CPerlSock();
virtual Csock *GetSockObj( const CS_STRING & sHostname, int iPort );
virtual Csock *GetSockObj( const CS_STRING & sHostname, u_short iPort );
void SetParentFD( int iFD ) { m_iParentFD = iFD; }
void SetUsername( const CString & sUsername ) { m_sUsername = sUsername; }
@@ -138,7 +138,7 @@ public:
// # OnConnect( $sockhandle, $parentsockhandle )
virtual void Connected();
// # OnConnectionFrom( $sockhandle, $remotehost, $remoteport )
virtual bool ConnectionFrom( const CS_STRING & sHost, int iPort );
virtual bool ConnectionFrom( const CS_STRING & sHost, u_short iPort );
// # OnError( $sockhandle, $errno )
virtual void SockError( int iErrno );
// # OnConnectionRefused( $sockhandle )