this is how i used this function. where: NetHostInfoBufPtr hp = NULL;
hp = MemPtrNew(sizeof (NetHostInfoBufType)); NetLibGetHostByName(AppNetRefnum, url->host, hp, AppNetTimeout, &err); netip = NetHToNL(hp->address[0]); hostSockAddr.addr = netip; hostSockAddr.family = AF_INET; hostSockAddr.port = htons(80); MemPtrFree(hp); url->host here refers to the url i am trying to reach (ex: sandbox.mine.com) hope that helps. good luck! -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
