Package org.drasyl.handler.sntp
Class SntpClient
java.lang.Object
org.drasyl.handler.sntp.SntpClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<Long>
static CompletableFuture<Long>
getOffset
(SocketAddress server) static CompletableFuture<Long>
getOffset
(List<SocketAddress> servers) static void
-
Field Details
-
NTP_PORT
public static final int NTP_PORT- See Also:
-
NTP_SERVERS
-
-
Constructor Details
-
SntpClient
public SntpClient()
-
-
Method Details
-
main
-
getOffset
-
getOffset
-
getOffset
-