Potize s funkci gethostbyname v C

Jan Kasprzak kas na informatics.muni.cz
Středa Duben 15 22:59:04 CEST 1998


Michal Krause pise:
: Mel jsem programek v Perlu, ktery se nakonektil na www server a stahnul
: dokument. Ted jsem ho prepsal do Ccka a funkce gethostbyname se nechova podle
: mych predstav. Pokud zadam jako jmeno IP adresu, tak se spoji. Pokud se spojuji
: s lokalnim www serverem jeho jmenem, rovnez funguje. Jakmile vsak napisu treba
: www.linux.cz, mam smulu.

	Muze jit o chybne /etc/resolv.conf, nebo vam nekde po volani
gethostbyname chybi ntohl() - takovy problem jsem tady na FI nedavno
komusi resil - jeste bych snad vyhrabal C-program jako priklad pouziti
gethostbyname(3), mate-li zajem.

-Yenya

--
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz>       http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz   0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\             Czech Linux Homepage:  http://www.linux.cz/              ///
 Considering exactly how many truly stupid things the BSD guys have done it
 continually makes me surprised  how many people still consider their ideas
 good without thinking too much about them.     --Linus on BSD securelevels


Další informace o konferenci Linux