int TSocket::sendData( char const* data , size_t num , char const* addrName , unsigned port ) { NetAddress addr; if ( !addr.setInternet( addrName , port ) ) return false; return sendData( data , num , addr ); }
bool TSocket::connect( char const* addrName , unsigned port ) { assert( mSocketObj == INVALID_SOCKET ); NetAddress addr; if ( !addr.setInternet( addrName , port ) ) return false; return connect( addr ); }