Get network time by QT
2016-08-23
0 0 0
no vote
Other
Earn points
There are three steps to do so:
1. Use QUdpSocket connect to time.windows.com;
QUdpSocket udpsocket = new QUdpSocket(this);
connect(udpsocket,SIGNAL(connected()),this,SLOT(connectsucess()));
connect(udpsocket,SIGNAL(readyRead()),this,SLOT(readingDataGrams()));
udpsocket->connectToHost("time.windows.com",123);
2. If connected,
c++
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment