All Packages Class Hierarchy This Package Previous Next Index
Class AcmeNet.Assn2.Service
AcmeNet.Assn2.Service
- public abstract class Service
A "server" object that sits on the network and waits for clients to connect to it. When a client
connects, a new thread is automatically started, and that thread calls into the Service to serve
that client.
- See Also:
- ClientServerNI, Connection
-
Service()
-
-
_internal_servConn(Connection)
- A method used by the AcmeNet implementation.
-
serviceConnection(Connection)
- Serves one client who has connected to the Service.
Service
public Service()
serviceConnection
public abstract void serviceConnection(Connection c)
- Serves one client who has connected to the Service. This method is automatically called
by the ClientServerNI when a client connects to the Service. Subclasses of Service should
define this method to do whatever is necessary to serve a client who wants to use the service.
When this method returns, the connection to the client is automatically broken.
- Parameters:
- c - a connection to the client
_internal_servConn
public void _internal_servConn(Connection c)
- A method used by the AcmeNet implementation. Don't override it unless you really know what you're doing.
All Packages Class Hierarchy This Package Previous Next Index