最近帮学长写了个Qt Tcpsocket客户端的应用程序,被一个问题困扰了许久.因为以前没有用Qt 写过socket的客户端程序
加上时间比较紧,都没能好好的查看些资料就急忙的写代码,看了一些别人的代码,差不多都是相同的,但是我就出现了收数据
不全的问题..
最后查出原因是我在接受服务器端的数据时使用了read()这个函数,接收的是个结构体,这里顺便说下怎么在Qt 下收发结构体
发:cli...
分类:
其他好文 时间:
2014-06-19 11:13:54
阅读次数:
342
一、服务端-server.c#include #include #include #include
#include #include #include #define MAXPENDING 5#define BUFFSIZE 32void Die(char
*mess){ perror(me...
分类:
其他好文 时间:
2014-06-16 07:15:50
阅读次数:
182
题目链接:http://poj.org/problem?id=2996
POJ...
分类:
其他好文 时间:
2014-06-15 20:16:37
阅读次数:
253
网站连接 :http://www.gaoshou.me/uid/19125624
不用不知道,一用吓一跳。
每个月的手机话费不用愁了。
仅限苹果手机
1、同步请求可以从因特网请求数据,一旦发送同步请求,程序将停止用户交互,直至服务器返回数据完成,才可以进行下一步操作,
2、异步请求不会阻塞主线程,而会建立一个新的线程来操作,用户发出异步请求后,依然可以对UI进行操作,程序可以继...
分类:
Web程序 时间:
2014-06-15 19:08:16
阅读次数:
265
题目
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is read off as "one
1" or 11.
11 is read off as "two
1s" or 21.
21 i...
分类:
其他好文 时间:
2014-06-15 18:51:33
阅读次数:
220
swift开发:试玩 Apple 网站的 playground https://developer.apple.com/library/prerelease/ios/documentation/swift/conceptual/swift_programming_language/GuidedTour.html...
分类:
移动开发 时间:
2014-06-15 08:00:09
阅读次数:
283
swift 里 1..2 和 1...2 的区别【chinaswift】...
分类:
其他好文 时间:
2014-06-14 00:38:36
阅读次数:
346
##RECORD,help me remember ###Make Lazy Version
Installer 1、Write this LazyVersion Installer DMG to a RAW empty disk 2、Use
Clover l...
分类:
其他好文 时间:
2014-06-13 15:27:01
阅读次数:
349
感谢微信平台---一天一道算法题---每天多一点进步本来 想在世界杯之前 可以
开开心心地A了今天的算法题 。。。。竟然是计算几何 我高数 那么渣.......这题 先放着吧..... 哎....链接 还是一样先放出来 . touch
me平常这个点 再过会 就应该要碎觉了 今天 = 个揭幕战...
分类:
其他好文 时间:
2014-06-13 15:21:52
阅读次数:
209
参考:ipa自动打包脚本
:http://webfrogs.me/2013/02/18/ios-automation/1、从以上链接中跳至GitHub下载打包所需的shell脚本文件夹2、打开终端cd到shell文件所在的绝对路径,格式如下cd
shell文件夹所在绝对路径3、键入一下命令执行脚本....
分类:
其他好文 时间:
2014-06-13 14:48:03
阅读次数:
281