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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: gethostbyname
相关阅读
新手急问:怎么打开一个大文件的前n行?为什么我下载的emacs没有bin directoryHELPS!! PC+Solaris+DlinkRouterwhat rcfile does sys use when login?script language that runs on multiple platiform[转载] 程序占用的内存空间[转载] Trace/BPT trap(coredump)?[转载] 有没有sun workstation高手how to run program background even lougout?help on extract email address from txt filePINE 问题:哪个folder?Re: [转载] 请问:装了GCC以后新手求教[转载] 谁有 B-Tree ( disk access ) 的参考code?SUN Solaris下看图片的软件?A simple question!急问how to remove a whole directory?help!!!how to change the speed of cursors?