上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 48 下一页

2025年2月10日

linux查看服务的装态

摘要: 我想查看由systemctl守护的进程服务的运行状态; systemctl status 服务名(不一定是进程的名字) 查询步骤,要先知道server的名称: systemctl list-units --type=service --all 然后查询具体server(如果你知道server名称,可 阅读全文

posted @ 2025-02-10 10:46 邗影 阅读(87) 评论(0) 推荐(0)

2025年2月8日

C++将同一个类中两个不同名称参数类型相同的函数抽象成一个类型

摘要: std::fun 抽象 #include <iostream> #include <functional> class MyClass { public: void func1(int x) { std::cout << "func1: " << x << std::endl; } void fun 阅读全文

posted @ 2025-02-08 14:15 邗影 阅读(39) 评论(0) 推荐(0)

2025年2月5日

webrtc拉流抓包分析

摘要: 1、整个webrtc交互一般需要 信令服务,ICE(stun+turn)中继打洞服务;以及两个端测; 1.1打洞服务: Coturn 的核心功能 STUN(Session Traversal Utilities for NAT):提供客户端检测自己的公共 IP 地址和端口。 TURN(Travers 阅读全文

posted @ 2025-02-05 11:37 邗影 阅读(615) 评论(0) 推荐(0)

2025年1月22日

关于通过onvif调用海康NVR查询录像返回500

摘要: 使用FindEvents查询录像token; 是因为海康区分profiletoken和recordingtoken需要依赖 type;有些做的好的,就可以自己决定使用哪个token FindEvents 的 IncludedSources 的 Type: http://www.onvif.org/v 阅读全文

posted @ 2025-01-22 15:45 邗影 阅读(136) 评论(2) 推荐(0)

2025年1月17日

Event poll 在项目中的应用

摘要: 水平触发: Level_triggered(水平触发):当被监控的文件描述符(fd)上有可读写事件发生时,epoll_wait()会通知处理程序去读写。如果这次没有把数据一次性全部读写完(如读写缓冲区太小),那么下次调用 epoll_wait()时,它还会通知你在上没读写完的文件描述符上继续读写,当 阅读全文

posted @ 2025-01-17 11:16 邗影 阅读(72) 评论(0) 推荐(0)

2025年1月15日

编译过程缺少libssl

摘要: 1 先按照网上安装了组件: sudo apt-get update sudo apt-get install libssl1.0.0 libssl-dev # 创建软链接 cd /lib/x86_64-linux-gnu sudo ln -s libssl.so.1.0.0 libssl.so.10 阅读全文

posted @ 2025-01-15 10:20 邗影 阅读(267) 评论(0) 推荐(0)

2025年1月8日

多进程监听同一个FD的问题

摘要: 现象: tcp绑定端口和IP,生成FD; lsof发现运行时,其他进程也在监听该FD; 并没有使用共享端口和地址SO_REUSEPORT SO_REUSEADDR 在Linux系统中,fork()函数会创建一个子进程,该子进程是父进程的副本,包括文件描述符在内的资源也会被继承。如果希望避免子进程继承 阅读全文

posted @ 2025-01-08 16:52 邗影 阅读(96) 评论(0) 推荐(0)

2025年1月7日

openssl/bio.h: No such file or directory

摘要: fatal error: openssl/bio.h: No such file or directory运行:sudo apt install libssl-dev 运行: apt --fix-broken install 用APT 高级工具修复下损坏的包,再安ssl 阅读全文

posted @ 2025-01-07 10:42 邗影 阅读(113) 评论(0) 推荐(0)

2025年1月6日

转载-webrtc信令交互whep与whip

摘要: https://www.ietf.org/archive/id/draft-ietf-wish-whip-01.html 阅读全文

posted @ 2025-01-06 10:39 邗影 阅读(43) 评论(0) 推荐(0)

2025年1月3日

16进制UTF8字符转中文汉字

摘要: 1 UTF8转TUF16 UTF16 本系统单字节字符,字符串 #if defined(_WIN32) #include <windows.h> #include <stdio.h> #include <iostream> #include <string> #include <iostream> 阅读全文

posted @ 2025-01-03 17:24 邗影 阅读(103) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 48 下一页

导航