摘要: 一、函数 1、recvfrom函数 UDP使用recvfrom()函数接收数据,他类似于标准的read(),但是在recvfrom()函数中要指明目的地址。 #include <sys/types.h> #include <sys/socket.h> ssize_t recvfrom(int soc 阅读全文
posted @ 2020-07-11 16:17 listxue 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 相关内容: socket 编程 Linux下tcp通信 1、server.c 测试代码 #include<stdio.h> #include<stdlib.h> #include<string.h> #include<errno.h> #include<sys/types.h> #include<s 阅读全文
posted @ 2020-07-11 15:16 listxue 阅读(1713) 评论(0) 推荐(0) 编辑
摘要: ifconfig //查ip ifconfig eth0 192.168.20.40 //ip改为同网段 mount -t nfs -o nolock 192.168.20.30:/home/share /mnt/ cd /mnt/test 阅读全文
posted @ 2020-07-11 11:09 listxue 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 相关内容: Linux下串口编程(一) Linux下串口编程(二) 1、设置串口波特率 stty -F /dev/ttyPS1 speed 115200dmesg | grep ttyS* //查串口设备echo 232 >> /dev/ttyPS1 //查看串口是否可用 2、测试代码 //可串口调 阅读全文
posted @ 2020-07-11 10:45 listxue 阅读(479) 评论(0) 推荐(0) 编辑