[ENet-discuss] Obtaining eNet client port

Lee Salzman lsalzman1 at cox.net
Fri Jan 13 08:07:10 PST 2006


Check out the "getsockname" function in winsock. It should do exactly 
what you want. You'll have to wait until there's a connection before you 
call it, though.

Lee

Doug Kimzey wrote:
> When an eNet instance is initialized as a client, with enet_host_create( 
> NULL, 1, 0, 0 ), it appears that the address field of the ENetHost is 
> not used.  I can easily determine the IP address of a client with 
> WinSock functions.  Are there ways to determine to port for a client?
> 
>  
> 
> Doug Kimzey
> 
> Software Developer
> 
> DPRA DEFENSE SYSTEMS GROUP
> 
> 10215 Technology Drive, Suite 201
> 
> Knoxville, Tennessee 37932-3344
> 
>  
> 
> Phone:   865.218.4237
> 
> Cell:        865.382.0307
> 
>  
> 
> Email:    doug.kimzey at dpra.com
> 
> Home:     mdkimzey at comcast.net
> 
> www.defensesystemsgroup.com
> 
>  



More information about the ENet-discuss mailing list