摘要: 1. 文件描述符类型 REG :文件DIR:目录CHR :字符BLK:块设备UNIX:unix域套接字FIFO :先进先出队列IPv4:网际协议 (IP) 套接字 其中, 标准输入STDIN(0)和STDOUT输出(1), STDERR错误(2)为指定的值 2. IO复用模型 (1). select 阅读全文
posted @ 2024-03-22 11:51 蔡头一枚 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 进入unbuntu终端: Ctrl+Alt+F1 退出: Ctrl+Alt+F7(或者 Alt+F7) 进入命令行窗口:Ctrl+Alt+T 阅读全文
posted @ 2024-03-22 09:34 蔡头一枚 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 对于Qt 信号的绑定,有几种方式: 1. 标准的SIGNAL和SLOT的绑定方式; 例如: connect(qApp, SIGNAL(focusChanged(QWidget *, QWidget *)), this, SLOT(focusChanged(QWidget *, QWidget *)) 阅读全文
posted @ 2024-03-22 09:32 蔡头一枚 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1. 格式解压压缩 tar.gz解压:tar -zxvf studio.tar.gz压缩:tar -zcvf studio.tar.gz directory_to_compress tar.bz2解压:tar -cjvf studio.tar.bz2压缩:tar -xjvf studio.tar.b 阅读全文
posted @ 2024-03-22 09:15 蔡头一枚 阅读(41) 评论(0) 推荐(0) 编辑
摘要: tcpdump抓包工具(类似window下的Wireshark)抓取udp(tcp)协议数据:tcpdump udp(tcp) 抓取源端口数据:tcpdump -i eth0 src port 端口号 抓取源IP信息:tcpdump -i eth0 src host 源Ip 阅读全文
posted @ 2024-03-21 18:06 蔡头一枚 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1.sudo apt-get install samba2.sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak3.sudo vi /etc/samba/smb.conf在smb.conf的文件最后加入以下配置并保存,然后退出 [ work ] #u 阅读全文
posted @ 2024-03-21 18:04 蔡头一枚 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1. sudo apt-get install nfs-kernel-server2. sudo vi /etc/exports//允许客户端挂载的目录,可添加任意多个,如果不设置,服务器将不允许客户端挂载/home/book/nfs *(rw,sync,no_root_squash) 3. sud 阅读全文
posted @ 2024-03-21 18:02 蔡头一枚 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 捕捉linux中键盘输入对象的键码情况 #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <string.h> #includ 阅读全文
posted @ 2024-03-21 17:58 蔡头一枚 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 背景:项目中要实现对QTextEdit里面选中的文字选中后进行拖拽处理, 但是无论设置哪个对象的鼠标样式,都无法生效,都会报一下这个 后面查看这个19的对应的鼠标样式,是DragCopyCursor这个枚举值,原因可能是QTextEdit在选中文字之后拖动时认为是复制的动作; 实际上在拖动选中的文字 阅读全文
posted @ 2024-03-21 17:53 蔡头一枚 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 网络连接使用UDP,接收码流数据进行处理 //数据结构:typedef struct DispensePkt { unsigned int lenght; unsigned int cntpkt; unsigned int index; unsigned long long pts; char da 阅读全文
posted @ 2024-01-26 17:21 蔡头一枚 阅读(122) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示