Potize s funkci gethostbyname v C

Jan Kasprzak kas na informatics.muni.cz
Pondělí Duben 20 23:42:33 CEST 1998


Michal Krause pise:
: Tak to udelame jinak, v priloze zasilam ten zdrojak, ma to asi 1KB, takze snad
: mi to ucastnici a spravce teto konference odpusti. Podivejte se na to, posudte v
: cem muze byt chyba a kdyz na to prijdete, budu jedine rad.
: Vim, ze uz se opakuju, ale znovu podotykam, ze na jinych pocitacich to funguje,
: takze ve zdrojaku bych chybu nehledal...
: 
	U me to funguje. Pokud gethostbyname() vraci null, pak je opravdu
chybne nastaveny resolver (resolv.conf, nsswitch.conf) nebo je dole
spojeni na nameserver, nebo neco takoveho. Nebo mate chybu v libc
nebo v kompilatoru.

-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