Purple Code

com.purpletech.message
Class BlockingClient

java.lang.Object
  |
  +--com.purpletech.message.BlockingClient

public class BlockingClient
extends java.lang.Object

processes input and output for a single client

Version:
1.0 11 Feb 1998
Author:
Alex

Constructor Summary
BlockingClient(java.net.Socket socket, int id)
          Initialize this object.
 
Method Summary
 void close()
           
 int getID()
          Accessor
 Message receiveMessage()
           
 void sendMessage(Message m)
          Send a message down the socket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockingClient

public BlockingClient(java.net.Socket socket,
                      int id)
               throws java.io.IOException
Initialize this object.

Method Detail

getID

public int getID()
Accessor


sendMessage

public void sendMessage(Message m)
                 throws java.io.IOException
Send a message down the socket

java.io.IOException

receiveMessage

public Message receiveMessage()
                       throws java.io.IOException
Returns:
the newly received message
java.io.IOException

close

public void close()

Documentation generated March 5 2003