[ENet-discuss] sorry for the post...

Atani atani at atani-software.net
Fri Mar 25 08:23:29 PST 2005


A very cursory glance at the code and I think this is your problem...

Basically, you are creating your server on port 1235 and the client is 
connecting to NE_SERVER_PORT (1234).

I may be a bit off here, but I think that may be the source of your problems..

On Thursday 24 March 2005 10:31 pm, Eduardo Del Balso wrote:
> here is my NetworkEngine.h
>
> #define NE_SERVER_PORT 1234;
>
> ****************************
>
> here is my NetworkEngine.cpp
>  if( type == NE_SERVER )
>  {
>   cout << "Creating Server...\n";
>   ENetAddress address;
>
>   cout << "Setting host to " << (int)ENET_HOST_ANY;
>
>   address.host = ENET_HOST_ANY;
>   address.port = 1235;
>
> NEError CNetworkEngine::connect( char * add )
> {
>  if( m_type != NE_CLIENT )
>  {
>   cout << "Cannot connect if not client...\n";
>   return NE_ERROR;
>  }
>
>  ENetAddress address;
>     ENetEvent event;
>
>  enet_address_set_host( & address, "127.0.0.1" );
>  address.port = NE_SERVER_PORT;


More information about the ENet-discuss mailing list