Re: GETHOSTBYNAME()

From: Martin Mares (mj@ucw.cz)
Date: Mon Mar 24 2003 - 04:23:07 EST


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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:15 EST