Example usage for Java org.apache.commons.net TimeTCPClient fields, constructors, methods, implement or subclass
The text is from its open source code.
long | SECONDS_1900_TO_1970 The number of seconds between 00:00 1 January 1900 and 00:00 1 January 1970. |
TimeTCPClient() The default TimeTCPClient constructor. |
void | connect(InetAddress host) Opens a Socket connected to a remote host at the current default port and originating from the current host at a system assigned port. |
void | disconnect() Disconnects the socket connection. |
Date | getDate() Retrieves the time from the server and returns a Java Date containing the time converted to the local timezone. |
long | getTime() Retrieves the time from the server and returns it. |
void | setDefaultTimeout(int timeout) Set the default timeout in milliseconds to use when opening a socket. |