All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class AcmeNet.Assn2.ServiceThread

AcmeNet.Assn2.ServiceThread

public class ServiceThread
A thread that services one client's connection to a Service.

See Also:
Service, ClientServerNI

Constructor Index

 o ServiceThread(Service, Connection)
Create a ServiceThread, but don't start it.

Method Index

 o run()
Called automatically when this thread is started.

Constructors

 o ServiceThread
 public ServiceThread(Service s,
                      Connection c)
Create a ServiceThread, but don't start it. A separate call to the start method is required to start the ServiceThread.

Parameters:
s - the service on whose behalf this thread is working
c - a connection to the client that this thread is serving

Methods

 o run
 public void run()
Called automatically when this thread is started. Don't call this directly.


All Packages  Class Hierarchy  This Package  Previous  Next  Index