#include <NtpClient.h>
◆ NtpClient()
◆ ~NtpClient()
◆ bind()
| bool bind |
( |
const QHostAddress & | bindAddress = QHostAddress::Any, |
|
|
quint16 | bindPort = 0 ) |
|
inline |
- Parameters
-
| bindAddress | Network address to bind upd socket to. It's passed to QUdpSocket::bind. |
| bindPort | Network port to bind udp socket to. |
- Returns
- Whether the socket was successfully bound.
◆ replyReceived
| void replyReceived |
( |
const QHostAddress & | address, |
|
|
quint16 | port, |
|
|
const NtpReply & | reply ) |
|
signal |
This signal is emitted whenever NTP reply is received.
- Parameters
-
| address | Address of the server that sent this reply. |
| port | Port of the server that sent this reply. |
| reply | NTP reply. |
◆ sendRequest() [1/2]
| bool sendRequest |
( |
const QHostAddress & | address, |
|
|
quint16 | port ) |
|
inline |
◆ sendRequest() [2/2]
| bool sendRequest |
( |
const String & | address, |
|
|
quint16 | port ) |
|
inline |
Sends NTP request.
- Parameters
-
| address | NTP server address. |
| port | NTP server port. |
- Returns
- Whether the NTP request was successfully sent.
◆ socket()
| const QUdpSocket * socket |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: