[ENet-discuss] Finding host IP

Brian Hook hook_l at pyrogon.com
Tue Aug 12 11:03:20 PDT 2003


Look at the socket functions gethostname() and gethostbyname().  The 
former gives you the name of the localhost, and the latter can convert 
it into a format you'd like to use.

I'm not sure if ENet already has this type of functionality built in, 
but I'm pretty sure it would be useful if it's not there.

Brian





More information about the ENet-discuss mailing list