- 博客(14)
- 资源 (7)
- 问答 (1)
- 收藏
- 关注
转载 linux socket异步
Linux下的异步TCP socket及实例同步socket通讯时,程序会阻塞在诸如(connect、accept、recv、recvfrom)等操作上,直到有事件发生时才会继续。而在异步通讯交互中,两方可以任意发送消息,当有数据要接收时,会收到系统消息提示来接收数据,而不会阻塞。在Linux下基于socket的异步通讯可以有多种方式,比较常用的有select方式、epoll方式和异步消息
2016-08-29 16:21:12 1308
转载 windows socket 非阻塞
服务器端:// winserver.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #define DEFAULT_PORT 5050 //服务端默认端口 #pragma comment(lib, "ws2_32.lib") //2.0版本//#include //#pr
2016-08-25 15:23:27 807 1
转载 linux 下非阻塞客户端,服务器代码
服务器端源代码如下:[cpp] view plain copy#include #include #include #include #include #include #include #include #include #include #include #i
2016-08-25 15:14:59 1218
转载 UNIX 网络 同步异步模型
UNIX网络编程--socket中的同步/异步 阻塞/非阻塞分类: linux编程2013-09-23 15:21 138人阅读 评论(0) 收藏 举报UNIX网络编程同步异步目录(?)[+]1. 概念理解 在进行网络编程时,我们常常见到同步(Sync)/异步(Async),阻塞(Block)/非阻塞(Un
2016-08-24 14:48:57 354
转载 Qt中QFtp和QURL获取带有中文的文件名称出现乱码的解决方法
然后在工程的main函数中,QApplication app...下一行写如下代码: QTextCodec::setCodecForCStrings(QTextCodec::codecForName("utf8"));#ifdef Q_OS_WIN QTextCodec::setCodecForLocale(QTextCodec::codecForName("
2016-08-22 17:16:20 3573
转载 QT 资料大全
简述发福利了、发福利了、发福利了,重要的事情说三遍。。。为了方便更多Qter了解、学习Qt,现将相关资源进行整理,主要内容包括:Qt官网、编码风格、GitHub & Third-Party、社区论坛、博客、书籍等。满满的都是干货,独乐乐不如众乐乐。。。简述Qt官网编码风格GitHub Third-Party社区论坛博客书籍更多Qt官网
2016-08-15 09:56:06 460
转载 MVD
Rectangle { width: 480 height: 300 gradient: Gradient { GradientStop { position: 0.0; color: "#dbddde" } GradientStop { position: 1.0; color: "#5
2016-08-11 15:32:32 697
转载 足球移动动画
import QtQuick 2.6import QtQuick.Controls 1.5ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") menuBar: MenuBar { Menu {
2016-08-10 17:41:49 317
转载 第一个QML简单动画
import QtQuick 2.6import QtQuick.Controls 1.5ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") menuBar: MenuBar { Menu {
2016-08-09 16:50:52 550
转载 QT 自定义事件
先注册事件 QEvent::registerEventType(QEvent::User+20);发送:、void MainWindow::on_refresh(int type){ QApplication::sendEvent(this->m_ptrControl, new QEvent((QEvent::Type)type));}
2016-08-08 17:12:21 324
转载 QT 操作SQLITE3
下载网址:http://www.sqlite.org/download.htmlwindows 下下载sqlite-tools-win32-x86-3130000.zip(1.51 MiB) A bundle of command-line tools for managing SQLite database files, includi
2016-08-05 17:26:56 2270
转载 QT 开源项目
图像处理:Kritadigikaminkscape编辑器:LiteIDEQDevelperKDeveloperMonkey StudioTeXstudio绘图:ZeGrapherQtiPlotqcustomplotQWTHotShotsInkscape三维建模:QCADFreeCADOpenMo
2016-08-05 15:57:56 8906 1
转载 QT 打印用法
QString fileName = QFileDialog::getSaveFileName(this, "Save document...", qApp->applicationDirPath(), "*.pdf"); if (!fileName.isEmpty()) { QPrinter printer; printer.setFullPage(true);
2016-08-05 10:44:46 582
转载 Qtextedit 中插入图片的方法
QTextCursor cursor = ui->textEdit->textCursor(); // insert the current plot at the cursor position. QCPDocumentObject::generatePlotFormat creates a // vectorized snapshot of the passed plot
2016-08-05 10:16:17 2649
面向模式的软件体系结构全中文
2016-04-18
win debug tool
2016-03-31
VC6.0配置问题555555555555555555
2015-10-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人