11 2015 档案

摘要:select函数用于在非阻塞中,当一个套接字或一组套接字有信号时通知你,系统提供select函数来实现多路复用输入/输出模型,原型:include <sys/time.h include <unistd.h int select(int maxfd,fd_set rdset,fd_set wrset... 阅读全文
posted @ 2015-11-20 11:13 巅峰净土 阅读(223) 评论(0) 推荐(0)
摘要://// include <stdio.h include <linux/input.h include <stdlib.h include <sys/types.h include <sys/stat.h include <fcntl.h define DEV_PATH "/dev/... 阅读全文
posted @ 2015-11-03 17:24 巅峰净土 阅读(1133) 评论(0) 推荐(0)