> -----Message d'origine-----
> De : [email protected] [mailto:enet-discuss-
> [email protected]] De la part de Olivier Delannoy
> Envoyé : mardi 16 février 2010 16:49
> À : Discussion of the ENet library
> Objet : Re: [ENet-discuss] little trouble with enet_address_set_host on
> Windows
> 
> if you want to do a local connection you should try use "localhost" as
> your target host I guess.
> 

The problem is that I do this from a application that I share. When run on my 
PC only, it hosts both a client and a server. When run on another PC, it only 
has a client that connects to the server run by my instance. Therefore the 
application has to namely specify the PC it connects to. And since I don't want 
to run a special version on my PC, I want the same code to work in both 
situations.

I just wanted to avoid a test where the instance running on my PC has to 
explicitly connect to localhost whereas other instances connect to a named 
host. That being said, causing the client to connect to "localhost" when the 
application hosts the server does fix the behaviour. But I don't like it.
I just feel that, as much as it is possible, ENet behaviour shouldn't be 
affected by an unrelated device I have plugged on the PC that happens to 
posture as a network interface with a fancy address.
_______________________________________________
ENet-discuss mailing list
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss

Reply via email to