Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Internet-Network
Title: time Download
 Description: The following program uses the Daytime protocol to obtain the date and time from port 13 of user-specified host(s). It provides a text field for input of the host name by the user and a text area for output of the host’s response. There are also two buttons, one that the user presses after entry of the host name and the other that closes down the program. The text area is ‘wrapped’ in a JScrollPane, to cater for long lines of output, while the buttons are laid out on a separate panel. The application frame itself will handle the processing of button presses, and so implements the ActionListener interface. The window-closing code (encapsulated in an anonymous WindowAdapter object) ensures that any socket that has been opened is closed before exit from the program.
 To Search:
File list (Check if you may need any files):
DaytimeServer.java
GetRemoteTime.java
    

CodeBus www.codebus.net