自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

转载 命名管道FIFO

1.可以在任意进程(不需要有关系)中进行通信; 2.管道本质是内核中的一块缓存; 3.FIFO在文件系统中存在一个管道文件,管道文件也是和内核中的缓存同步的,是指向文件的路径; 4.命令管道默认是阻塞型; 5.对FIFO的操作跟普通文件一样,可用open打开它,一般的文件I/O函数(close,read,write,ulink)都可以使用。 mkfifo s.pipe ---...

2017-03-06 20:16:00 207

转载 标准库中的管道操作

----------------------------------------------------------------------------------------------------------- #include <stdio.h>#include <stdlib.h>#include <memory.h>int ...

2017-03-06 19:27:00 135

转载 现代进程间的通信方式--管道

管道(pipe)、命名管道(FIFO)、信号(signal)、消息队列、共享内存、信号量、套接字(socket) -------------------------------------------------------------------------------------- #include <unistd.h>#include <string.h&gt...

2017-03-06 10:29:00 159

转载 广播编程之发送者

#include <sys/socket.h>#include <netdb.h>#include <unistd.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <signal.h>#include <memor...

2017-03-05 21:11:00 152

转载 广播编程之接受者

广播实现一对多的通信,通过向广播地址发送数据报文实现 只有udp的程序才能广播,tcp不能 ---------------------------------------------- #include <sys/socket.h>#include <netdb.h>#include <unistd.h>#include <strin...

2017-03-05 21:01:00 117

转载 基于UDP协议+域名解析 的客户端编程

#include <sys/socket.h>#include <netdb.h>#include <unistd.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <signal.h>#include <memor...

2017-03-05 20:31:00 340

转载 域名解析

在/etc/hosts中已经设置了ip与域名的映射关系,通过域名解析函数进行解析(主机名,别名,协议类型,网络地址大小,指向网络IP地址指针等) 部分解析函数: #include<netdb.h> struct hostent gethostbyname(const char *hostname); 无法解析IPV6地址,在多线程中会有问题 struct hoste...

2017-03-05 20:17:00 128

转载 基于UDP协议的客户端编程

#include <sys/socket.h>#include <netdb.h>#include <unistd.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <signal.h>#include <memor...

2017-03-05 10:21:00 217

转载 基于UDP协议的服务器编程

#include <sys/socket.h>#include <netdb.h>#include <unistd.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <signal.h>#include <time....

2017-03-05 10:03:00 115

转载 【解决方案】bash: ./tcp_service: cannot execute binary file

arm-none-linux-gnueabi-gcc -o tcp_service tcp_service.c 由于使用的是交叉编译环境,生成的目标代码是用于arm开发板,故在x86电脑上无法使用。 转载于:https://www.cnblogs.com/lvdh1314/p/6480595.html...

2017-02-28 19:45:00 241

转载 vi常用操作

vi编辑器,命令行模式输入wq命令无法保存文件? E212: Can't open file for writing 原因是权限不够,需要转换成超级用户 sudo su。 编辑出现行号:set nu 取消行号:set nonu 转载于:https://www.cnblogs.com/lvdh1314/p/6479624.html...

2017-02-28 16:50:00 117

转载 基于TCP协议的客户端编程

#include <netdb.h>#include <sys/socket.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <memory.h>#include <unistd.h>int main(int argc,...

2017-02-28 15:17:00 170

转载 基于TCP协议的服务器编程

#include<netdb.h>#include<sys/socket.h>#include<unistd.h>#include<string.h>#include<stdio.h>#include<stdlib.h>#include<memory.h>#include<signal.h>#...

2017-02-28 11:23:00 144

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除