Java org.apache.commons.net.time TimeTCPClient fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.time TimeTCPClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.time TimeTCPClient.

The text is from its open source code.

Constructor

TimeTCPClient()
The default TimeTCPClient constructor.

Method

voidconnect(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.
voiddisconnect()
Disconnects the socket connection.
DategetDate()
Retrieves the time from the server and returns a Java Date containing the time converted to the local timezone.
voidsetDefaultPort(int port)
Sets the default port the SocketClient should connect to when a port is not specified.
voidsetDefaultTimeout(int timeout)
Set the default timeout in milliseconds to use when opening a socket.