- 博客(5)
- 收藏
- 关注
转载 用srvany.exe将程序安装为windows服务的步骤链接
https://www.kafan.cn/edu/2860461.htmlhttps://www.kafan.cn/edu/2860461.html
2016-08-24 22:07:13
436
转载 poll实例
#include stdio.h> #include unistd.h> #include sys/poll.h> #define TIMEOUT 5 /* poll timeout, in seconds */ int main (void) { struct pollfd fds[2]; int ret; /* wat
2016-08-21 11:14:39
318
转载 epoll实例
/ // a simple echo server using epoll in linux // // 2009-11-05 // by sparkling // #include #include #include in.h> #include #include #include #include
2016-08-21 11:10:28
138
原创 进程
1. 线程操作函数 thread_t thread1 pthread_create(&t_id,NULL,control_clnt,(void*)&clnt_sock); pthread_t pthread_self();获取自身的线程ID pthread_join(UID, void**return);主线程挂住,直到等到UID线程退出。 pthread_
2016-08-21 10:48:28
160
原创 套接字学习笔记
1.socket函数 int socket(int domain, int type, int protocol); 作用:创建套接字描述符 domain:协议族 AF_UNIX: AF_UNIX域协议族,本机的进程通信时使用 AF_INET: Internet协议族 AF_ISO: ISO协议族 type:指定套接字类型 SOCK_STREAM
2016-08-20 22:38:49
134
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人