![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
夏天适合短发
这个作者很懒,什么都没留下…
展开
-
ORTP(3)VS2019编译ORTP
将ortp源码复制到window上,打开VS2019,文件----打开-----项目/解决方案 打开 ortp\build\win32nativ下的VS项目 导入完成 直接运行 编译报错,查看 屏蔽它 编译成功,添加dll或者lib使用库 库路径 \ortp\build\win32native\Debug 添加工程在exe/ortp/ 第一层 # CMake 最低版本号要求 cmake_minimum_required(VERSION 3.0.0) # ...原创 2021-10-22 10:18:10 · 431 阅读 · 0 评论 -
ORTP(2)ubuntu运行ortp
编译ortp/src/test/的rtpsend和rtprecv 工程中添加ortp库和ortp头文件,在编译生成的目录下copy # CMake 最低版本号要求 cmake_minimum_required(VERSION 3.0.0) # 项目名称 project(1) #向工程添加多个特定的头文件搜索路径,路径之间用空格分隔 # include_directories(include) # 指定生成目标 将名为 main.cpp 的源文件编译成一个名称为 ${PROJECT_NAM.原创 2021-10-21 19:42:39 · 192 阅读 · 0 评论 -
ORTP(1)ubuntu下编译运行
一 下载 git clone https://github.com/dmonakhov/ortp cd ./ortp ./autogen.sh ./configure --prefix=/tmp/ortp --host=arm-hisiv300-linux # --prefix:安装位置 # --host:交叉编译工具链 make && make install 安装完成会在/tmp/ortp生成库和头文件,没有成功查看对应网络教程 ./autogen.sh ./confi原创 2021-10-21 17:42:16 · 174 阅读 · 0 评论 -
socket编程(4)
组播 一、实现 客户端 #include<stdio.h> #include<string.h> #include<unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> //#include <sys/socket.h> #include <netinet/in.h> //#include <原创 2021-08-04 16:53:49 · 746 阅读 · 0 评论 -
socket编程(3)
tcp连接默认为双向通信,发送成功回调。 一、实现 服务器 #include<stdio.h> #include<string.h> #include<unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> //#include <sys/socket.h> #include <netinet/in.h&g原创 2021-08-03 16:54:27 · 147 阅读 · 0 评论 -
socket编程(2)
多客户端连接同一服务器 一、客户端 #include<stdio.h> #include<string.h> #include<unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> //#include <sys/socket.h> #include <netinet/in.h> //#include原创 2021-08-03 13:42:37 · 235 阅读 · 0 评论 -
socket编程(1)
一、流程图 二、实现 1、服务器 #include<stdio.h> #include<string.h> #include<unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> //#include <sys/socket.h> #include <netinet/in.h> //#inclu原创 2021-08-03 10:33:54 · 188 阅读 · 0 评论