j*y
4 楼
i have written a small program to test it.
but the ip address part doesn't return any result.
any problem with it?
#include
#include /* For gethostbyname() */
/*
struct hostent {
char *h_name; -- official name of host
char **h_aliases; -- alias list
int h_addrtype; -- host address type
int h_length; -- length of address
char **h_addr_list; -- list of addresses from name server
#define h_addr h_addr_list[0] -- address, for backward compatiblity
};
*/
int main(int argc, char **
【在 n******t 的大作中提到】
: gethostbyname
but the ip address part doesn't return any result.
any problem with it?
#include
#include
/*
struct hostent {
char *h_name; -- official name of host
char **h_aliases; -- alias list
int h_addrtype; -- host address type
int h_length; -- length of address
char **h_addr_list; -- list of addresses from name server
#define h_addr h_addr_list[0] -- address, for backward compatiblity
};
*/
int main(int argc, char **
【在 n******t 的大作中提到】
: gethostbyname
相关阅读
THE DESKTOP MESSAGING SYSTEM COULD NOT BE STARTED怎么solve: Solaris 8 doesn't support my video card?PVM bugs??Any good network topic for my project?Acrobat Reader Plugin in Netscape?请回答一下9176怎么听ram的在线广播?hashbang in korn shell我抄袭了R.STEVENS大侠,请问如何在VI和XEMACS中对齐程序?libglu.* in SGI IRIX 6.5???文件删不掉gcc问题请问怎么用sftp传输文件夹?authentication & authorization?[转载] 解.bz2文件用哪个命令?请问如何让程序在机器后台操作?(急!)solaris 9where are the contents of "jing Hua qu"?有用Digital Alpha的吗?