-
QT获取网络时间
基本过程如下:
1. 利用ntp服务器获取网络时间
QUdpSocket udp_sock;
udp_sock.connectToHost("time.windows.com",123);
2. 阻塞等待连接成功
if(udp_sock.waitForConnected(60000))
{
...
}
3. 发送时间请求
udp_sock.write(time_req);
udp_sock.flush();
4. 阻塞等待消息返回
if(udp_sock.waitForReadyRead(120000))
{
...
}
说明:此过程等待时间可能较长,出现连接失败的情况也比较常见。
- 2022-03-21 22:20:09下载
- 积分:1
-
文字转换,可用于繁体字和简体字之间的转换
文字转换,可用于繁体字和简体字之间的转换
- 2022-03-24 01:10:25下载
- 积分:1
-
agentpp.com的免费的SNMP AGENT开发包. 本开发包来自 http://www.agentpp.com/ AGENT++ 版本v3.5.14 (...
agentpp.com的免费的SNMP AGENT开发包. 本开发包来自 http://www.agentpp.com/ AGENT++ 版本v3.5.14 (包含VC7工程文件) AGENT++ Win32 版本v1.0 (包含VC7工程文件) SNMP++ 版本v3.2.9d (包含VC7工程文件) -agentpp.com free SNMP Agent Development Kit. The development kits from http://www.agentpp.com/ Agent version v3.5.14 (including VC7 works) AGENT Win32 version v1.0 (including VC7 works) SNMP version v3.2.9d (including VC7 works)
- 2022-03-28 11:22:59下载
- 积分:1
-
这是一本讲解VC多线程编程的网络编程的书,很不错的,希望对大家有所帮助,有问题的话大家可以联系我。...
这是一本讲解VC多线程编程的网络编程的书,很不错的,希望对大家有所帮助,有问题的话大家可以联系我。-This is a multi-threaded programming on the VC network programming book, it is good, and they hope to help everyone, so everyone has questions can contact me.
- 2022-09-20 10:30:03下载
- 积分:1
-
楠楠写的DBiocp例子都是源码,有的地方看不太懂
楠楠写的DBiocp例子都是源码,有的地方看不太懂-楠楠examples are written in DBiocp source, some places do not understand
- 2022-02-11 13:53:06下载
- 积分:1
-
A LAN can send messages and documents instant messaging program. Do not need ser...
一个在可以在局域网内发送消息和文件的即时通讯程序。不需要服务器,点对点的通讯。传输文件的速度比windows的共享文件快!-A LAN can send messages and documents instant messaging program. Do not need servers, point-to-point communications. Transfer files faster than windows shared files fast!
- 2023-01-18 06:00:04下载
- 积分:1
-
E
一个电子邮件收发的程序,时我这学期的课程设计作业-an e-mail procedures, I am of course this semester design operations
- 2022-05-24 19:45:57下载
- 积分:1
-
wwwquote super programming.
wwwquote super programming.
- 2022-01-25 17:37:29下载
- 积分:1
-
简单学习asp.net将文件和图片编译成动态外链接库..对一些初学者.是一个不错的例子.
其它的详细说明看代码哦...
简单学习asp.net将文件和图片编译成动态外链接库..对一些初学者.是一个不错的例子.
其它的详细说明看代码哦-simple study of documents and pictures compiled into a dynamic link library .. outside for some beginners. It is a good example. Other detailed look at the code oh
- 2022-07-09 10:03:27下载
- 积分:1
-
简单的网络聊天工具
利用TCP udp 进行的网络编程,可以进行聊天哦。 包括信息交互栏,发送信息窗口等等。简单明了。
- 2022-02-05 05:55:19下载
- 积分:1