[bedevtalk] Socket netwwork in Bone

Fredrik Modéen fredrik.moden at telia.com
Wed Mar 8 18:59:29 BRT 2006


/*A typical use of gethostname() is to follow the call with 
gethostbyname() in order to retrieve the address of the local host*/

This does not work, Is there some other way to get my adress as a long?

this are also not working as gethostaddr are not found in socket.h and 
INADDR_ANY are 0.
"
if ((host_addr = (ulong)gethostaddr()) == -1)
{
host_addr = INADDR_ANY;
}
"

(http://yellowtab.com/develop/dev_docs/html_public/NetworkSockets.html)

//Fredrik



More information about the bedevtalk mailing list