Messages in this thread | ![/](/images/icornerl.gif) | | Date | Mon, 24 Mar 2003 10:23:07 +0100 | From | Martin Mares <> | Subject | Re: GETHOSTBYNAME() |
| |
Hello!
> data = gethostbyname("158.168.1.1");
If you use gethostbyname only on numerical addresses, then it's fine to replace it by htonl(0x98a80101) etc.
Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth A Bash poem: time for echo in canyon; do echo $echo $echo; done - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |