随笔分类 -  C++

摘要:Image { id:img source:".jpg" smooth: true width:800 height:600 Rectangle { id:txt1 width:img.width/4 height:img.height anchors.right: img.right anchor 阅读全文
posted @ 2024-10-24 00:33 徘徊彼岸花 阅读(19) 评论(0) 推荐(0) 编辑
摘要:基于https://www.bilibili.com/video/BV1Li421Y7EH/?spm_id_from=333.999.top_right_bar_window_history.content.click原理的一个qt实现 #pragma once #include <QWidget> 阅读全文
posted @ 2024-10-14 21:21 徘徊彼岸花 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#ifndef MYSQLCONNECTION_H #define MYSQLCONNECTION_H #include <iostream> #include <mysql.h> #include <vector> class MySQLConnection { public: /// <summ 阅读全文
posted @ 2024-08-07 22:05 徘徊彼岸花 阅读(21) 评论(0) 推荐(0) 编辑
摘要:非阻塞recv EAGAIN、EWOULDBLOCK错误码值11 返回值 含义 >0 接收字节数 0 接收FIN包,连接被对端断开 -1 (errno==EAGAIN||EWOULDBLOCK)表示还有数据未读。反之,则表示发生了错误。 //epollServer.cpp #include <std 阅读全文
posted @ 2024-07-18 18:38 徘徊彼岸花 阅读(42) 评论(0) 推荐(0) 编辑
摘要:1.select模型 //selectServer.cpp #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/sock 阅读全文
posted @ 2024-07-15 17:51 徘徊彼岸花 阅读(10) 评论(0) 推荐(0) 编辑
摘要://mthserver.cpp #include "TcpServer.h" #include "CLogFile.h" #include <string> #include <pthread.h> #include <vector> CLogFile logfile; TcpServer tcpS 阅读全文
posted @ 2024-07-10 00:40 徘徊彼岸花 阅读(9) 评论(0) 推荐(0) 编辑
摘要:#include "TcpServer.h" #include "CLogFile.h" CLogFile logfile; TcpServer tcpServer; void FatherEXIT(int sig) { if(sig>0) { signal(sig,SIG_IGN); signal 阅读全文
posted @ 2024-07-04 01:56 徘徊彼岸花 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <mutex> #include <queue> #include <vector> #include <functional> #include <condition_variable> #include <atomic> #include 阅读全文
posted @ 2024-05-08 03:34 徘徊彼岸花 阅读(44) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示