随笔分类 -  网络编程

摘要:#include #include #include #include #include #include #include #include #include #include #include #include using std::cout; using std::endl; using st 阅读全文
posted @ 2017-09-08 16:11 书灯 阅读(30) 评论(0) 推荐(0) 编辑
摘要:#include #include #include #include #include #include #include #include #include #include #include using std::cout; using std::endl; using std::thread 阅读全文
posted @ 2017-09-08 16:08 书灯 阅读(7) 评论(0) 推荐(0) 编辑
摘要:/*利用syslog服务的守护进程实例*/ /************************************************* 1.守护进程概述 守护进程,通常所说的Daemon进程,常常在系统引导载入时启动, 在系统关闭时终止,大多数后台服务都是通过守护进程实现的。如果 想让某个 阅读全文
posted @ 2016-11-17 19:03 书灯 阅读(2) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netinet/in.h> 阅读全文
posted @ 2016-10-21 22:03 书灯 阅读(4) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> 阅读全文
posted @ 2016-10-21 22:02 书灯 阅读(2) 评论(0) 推荐(0) 编辑
摘要:/************************************************************ *FileName : udp_client.c *description : 本程序说明了如何建立一个可以接收UDP服务器的UDP * 客户端。注意:使用网络调试助手要指定服 阅读全文
posted @ 2016-10-20 21:47 书灯 阅读(1) 评论(0) 推荐(0) 编辑
摘要:/************************************************************ *FileName : udp_server.c *description : 本程序说明了如何建立一个可以接收UDP客户端的UDP * 服务器。注意:使用网络调试助手要指定服 阅读全文
posted @ 2016-10-20 21:44 书灯 阅读(1) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示