-
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
-
reliable_udp
基于udp实现可靠传输的原理实现了一个简易的邮件系统。存储利用文件来实现,不涉及数据库。(Udp achieve reliable transmission based on the principle of achieving a simple mail system. Storage of papers to achieve, does not involve a database.)
- 2008-01-15 18:46:40下载
- 积分:1
-
用vc实现的局域网主机搜索程序!可以列举选择的IP范围内的主机名,ip,网卡地址等!...
用vc实现的局域网主机搜索程序!可以列举选择的IP范围内的主机名,ip,网卡地址等!- Local area network main engine search procedure realizes which
with vc! May enumerate the choice in IP scope main engine, ip, the net
card address and so on!
- 2022-03-21 18:42:06下载
- 积分:1
-
Web浏览器
web browser
- 2022-12-13 15:15:03下载
- 积分:1
-
udp编程 实现客户端与服务器通信
基于UDP通信模拟Go-Back N ARQ工作过程。UDP的客户端相当于ARQ的发送端,UDP的服务端相当于接收端。
需要模拟正常通信,发端数据出错、反向数据帧出错和反向数据帧过长导致确认超时三种类型的发端重传。
当发送窗口和接收窗口的大小都等于 1时,就是停止等待协议。
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-01-23 10:02:53下载
- 积分:1
-
integrity of the server (with code). Procedures will be linked to the host surve...
完整的主机服务器, (含代码).程序会监视联结到主机程序上的所有机器.可是设置开启端口,最多用户..非常完整.!-integrity of the server (with code). Procedures will be linked to the host surveillance procedures of all machines. But set to open ports, the largest users .. very complete. !
- 2023-06-23 14:50:03下载
- 积分:1
-
可以在局域网内互发网络短消息;
为PING提供GUI界面
自动PING代理服务器,检查哪个服务器有效...
可以在局域网内互发网络短消息;
为PING提供GUI界面
自动PING代理服务器,检查哪个服务器有效-Can be issued in the LAN inter-network short message PING provides GUI interface for automatic PING proxy server, check which server effectively
- 2022-06-13 23:17:34下载
- 积分:1
-
udp简单的异步通讯程序
实现简单的异步通信,接收发送数据。VC写的UDP异步通信的程序 供喜欢VC程序的做为参考-VC write UDP asynchronous communication procedures for procedures like VC as a reference
- 2022-06-30 07:40:32下载
- 积分:1
-
Microsoft.Press.Code.Complete.Second.Edition
这是一本百科全书式的软件构建手册,强调提高软件质量的种种实践方法,不过这个是英文版的,中文版太大了,上传不了,有需要的请联系我(This is an encyclopedic handbook of software construction, with emphasis on increasing the variety of software quality practices. But this is the English version, the Chinese version too, can upload, it is necessary to please Contact)
- 2007-05-08 09:42:09下载
- 积分:1
-
vc used to achieve the domain search tool
用vc实现的域名查找工具-vc used to achieve the domain search tool
- 2022-05-13 07:48:43下载
- 积分:1