t3.remotehrd.server
Class Client

java.lang.Object
  extended by t3.remotehrd.server.Client

public class Client
extends java.lang.Object

Represents, at the server end, a client connected to the server.

Author:
pjt40

Field Summary
 int clientId
           
 
Method Summary
 void close()
          Ensures that no more messages are sent to this client and closes the client's socket.
 void errorWithThisClient(java.lang.Throwable e)
          Reports a specified exception to do with this client, and closes the client without stopping the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientId

public final int clientId
Method Detail

errorWithThisClient

public void errorWithThisClient(java.lang.Throwable e)
Reports a specified exception to do with this client, and closes the client without stopping the server. This method is thread-safe; it can be called from any thread.

Parameters:
e -

close

public void close()
Ensures that no more messages are sent to this client and closes the client's socket. This method can be called more than once with no ill effects. This method is thread-safe; it can be called from any thread.