return( ETIMEDOUT );
}
-int GetAddrInfo( const CS_STRING & sHostname, Csock * pSock, CSSockAddr & csSockAddr )
+int CS_GetAddrInfo( const CS_STRING & sHostname, Csock * pSock, CSSockAddr & csSockAddr )
{
#ifdef USE_GETHOSTBYNAME
if( pSock )
else
{
// if not detaching, then must block to do DNS resolution, so might as well use internal resolver
- if( ::GetAddrInfo( m_sBindHost, this, m_address ) != 0 )
+ if( ::CS_GetAddrInfo( m_sBindHost, this, m_address ) != 0 )
{
CallSockError( EADDRNOTAVAIL );
return( false );
}
return( EAGAIN );
#else /* HAVE_C_ARES */
- return( ::GetAddrInfo( sHostname, this, csSockAddr ) );
+ return( ::CS_GetAddrInfo( sHostname, this, csSockAddr ) );
#endif /* HAVE_C_ARES */
}
};
//! backwards compatible wrapper around CGetAddrInfo and gethostbyname
-int GetAddrInfo( const CS_STRING & sHostname, Csock * pSock, CSSockAddr & csSockAddr );
+int CS_GetAddrInfo( const CS_STRING & sHostname, Csock * pSock, CSSockAddr & csSockAddr );
/**
* This returns the [ex_]data index position for SSL objects only. If you want to tie more data