Esempio n. 1
0
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 );
}
Esempio n. 2
0
bool TSocket::connect( char const* addrName  , unsigned  port )
{
	assert( mSocketObj == INVALID_SOCKET );
	NetAddress addr;
	if ( !addr.setInternet( addrName , port ) )
		return false;

	return connect( addr );
}