![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
goAhead
文章平均质量分 73
nameofhsw
这个作者很懒,什么都没留下…
展开
-
hostent和in_addr结构体
一.hostent数据结构是这样的: struct hostent { const char *h_name; // official name of host char **h_aliases; // alias list short h_addrtype; // host address type short原创 2012-08-01 10:30:58 · 1123 阅读 · 0 评论 -
goAhead 编译
以LINUX为例静态页面1.打开文件目录至LINUX文件夹,执行命令“make”2.make完成后,执行命令“./webs -demo”("./webs"亦可,区别暂时没发现)3.打开网页http://localhost:8080 ,显示wwwdemo文件夹目录下的home.htm4.关闭时候,直接Ctrl+c停止即可。下次编译,需要先make clean一次。不如会有提示原创 2012-07-23 15:46:11 · 1424 阅读 · 0 评论 -
Signal信号处理
在goahead的linux模块main.c 文件中,main函数中出现了以下三个语句:signal(SIGPIPE, SIG_IGN); signal(SIGINT, sigintHandler);signal(SIGTERM, sigintHandler);这三条语句与网络信号有关。在这里做咯记录。1. 信号概念 信号是进程在运行过程中,由自身产生或由进程外部发原创 2012-08-01 10:21:34 · 1711 阅读 · 0 评论