这个示例与上一个类似,只是使用了QTcpServer和 QTcpSocket 服务端 用到了 QTcpServer QTcpServer::newConnection信号收到后,就 tcpServer->nextPendingConnection();发送数据,最后disconnectFromHost(); 其它: Qt::TextBrowserInteraction 的作用是允许...
git系列2:删除远程无效分支
有些分支在远端其实早就被删除了,但是在你本地依然可以看见这些被删除的分支。 清理远端不需要的分支: git remote prune origin
C++系列2:宏定义时#(井号)和##(双井号)的作用
#表示将其后的内容转换为字符串,即加上双引号。 #define example(instr) printf("the input string is:%s",#instr) #define example1(instr) #instr 当使用该宏定义时: example(abc); 在编译时将会展开成:printf("the input string is:%s","abc"); str...
Qt官方示例解析系列6:Local Fortune Server and Client
实现了什么功能 客户端 用到的知识点 使用了QDialogButtonBox,一个作为ActionRole,一个作为RejectRole, QLocalServer为服务端, QLocalSocket是客户端。 部分源码解析 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);//会在标题栏添加一...
开源软件推荐系列10:OBS
可录屏,可推流 https://obsproject.com/ 源码:https://github.com/obsproject/obs-studio
开源软件推荐系列9:7zip解压缩
https://www.7-zip.org/ 源码:https://github.com/ip7z/7zip
开源软件推荐系列8:VLC播放器
开源跨平台播放器 https://www.videolan.org/vlc/ https://www.videolan.org/developers/vlc.html 源码: https://wiki.videolan.org/VLC_Source_code/ https://code.videolan.org/videolan/vlc
cmd系列1:setx
setx永久设定环境变量 其中/m 表示设置系统环境变量,记录在HKEY_LOCAL_MACHINE, 不加此选项默认在HKEY_CURRENT_USER,同时会在用户环境变量那里新增一个变量。一般不用/m 而SET用于设置临时环境变量
排行榜系列1:Github
https://github.com/search?q=stars%3A%3E20000&s=stars&type=Repositories&p=1
WebRTC系列3:架构
浅绿色部分分为四层 PeerConnection:主要实现P2P连接 Session:会话层 第三层,包含音频引擎,视频引擎,传输,3大核心模块 最底层是与硬件相关的硬件适配层:包含音频的采集和渲染,视频的捕捉,网络IO 其中Voice Engine 音频引擎包含3大模块: NetEQ for voice: NetEQ实际上是一个音频缓冲buffer,防止音频抖动 Vide...