Q_INT32 uiValue = inet_addr( ( char* ) data.latin1() ) ;
Q_UINT32 uiValue = inet_addr( ( char* ) data.latin1() ) ;
Q_INT32 resolveName( const QString& data ){	if ( data.isEmpty() )		return INADDR_NONE;	// we do a dns lookup on this	Q_INT32 uiValue = inet_addr( ( char* ) data.latin1() ) ;	if ( uiValue == INADDR_NONE )	{		hostent* ptrHost = gethostbyname( ( char* ) data.latin1() );		if ( ptrHost != 0 )		{			char** ptrPtr = ptrHost->h_addr_list;			//We only use the first one			if ( *ptrPtr != NULL )			{				//  	I can think of no other way				memcpy( &uiValue, *ptrPtr, sizeof( in_addr ) ) ;			}		}	}	// inet_addr returns the ip in reverse order	return ntohl( uiValue );}