edu.pdx.cs399J.net
Class DateServer

java.lang.Object
  extended by edu.pdx.cs399J.net.DateServer

public class DateServer
extends Object

A server that waits for a DateClient to connect to it. When a client connects, it waits for 5 seconds before returning the current date and time. This program demonstrates the ports that are actually used when a socket connection is made. The server will exit after five clients have connected to it.

Since:
Fall 2005
Author:
David Whitlock

Constructor Summary
DateServer()
           
 
Method Summary
static void main(String[] args)
          Listens for 5 clients to attach.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateServer

public DateServer()
Method Detail

main

public static void main(String[] args)
Listens for 5 clients to attach. The client's request is handled in its own DateServer.Worker thread.



Copyright © 2000-2009 Portland State University. All Rights Reserved.