drswinghead

主站网址

导航

上一页 1 ··· 15 16 17 18 19

2010年6月12日

lighttpd 模块中的函数调用顺序

摘要: 在lighttpd启动的时候运行下面三个函数调用:mod staffft plugin inited mod_stat_plug_initmod_stat.c 73 call order mod_stat_init2007-09-25 09:36:50: (mod_stat.c.120) call order mod_stat_set_defaults在有新的请求发来时运行下面的函数调用:2007... 阅读全文

posted @ 2010-06-12 14:33 drswinghead 阅读(147) 评论(0) 推荐(0)

lighttpd base.h 代码阅读笔记 (不断完善中。。。)

摘要: sock_addr : union , 此联合是一个能处理IPV4和IPV6和UNIX域套接字的结构。类似于 struct sockaddr 结构体。一般此联合用于存储连接双方的IP地址。request : typedef struct {…} request , lighttpd存储远程请求的结构体。在一个请求处理完成之前些结构体一直存活,生命周期是在一次请求。此结构体放在下面要说明的 serv... 阅读全文

posted @ 2010-06-12 14:33 drswinghead 阅读(123) 评论(0) 推荐(0)

linux 上的一些硬件使用

摘要: thinkfinger: 需要选项:CONFIG_INPUT_UINPUT:ThinkFinger is a driver for the UPEK/SGS Thomson Microelectronics fingerprint reader (USB ID 0483:2016). ... Toshiba is shipping their laptops either with the UPE... 阅读全文

posted @ 2010-06-12 14:33 drswinghead 阅读(156) 评论(0) 推荐(0)

linux 下 iconv 函数的使用

摘要: #include size_t iconv(iconv_t cd, char **inbuf, size_t *inbytesleft,char **outbuf, size_t *outbytesleft);iconv -l 命令列出支持的转换码表。注意的问题:iconv的man有点问题。iconv返回的实际上不是成功的数目。0只是说明成功。iconv返回0就说明字符序列全部已经转换成功,pi... 阅读全文

posted @ 2010-06-12 14:33 drswinghead 阅读(424) 评论(0) 推荐(0)

linux下网线接入状态检测

摘要: 现在有两个工具软件包mii-tools和ethtool 中包含检测代码。mii-tools中的检测代码如下:[code type="c"]short get_flags(const char *dev){ struct ifreq ifr; bzero((char *)&ifr, sizeof(ifr)); strcpy(ifr.ifr_name, dev); if (ioctl(ioctl_so... 阅读全文

posted @ 2010-06-12 14:33 drswinghead 阅读(151) 评论(0) 推荐(0)

上一页 1 ··· 15 16 17 18 19