|
Purple Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.purpletech.message.server.RemoteClient
This is the Client as seen by the server. It processes input and output for a single client
| Constructor Summary | |
RemoteClient(java.net.Socket socket,
int id)
Initialize this object. |
|
| Method Summary | |
void |
close()
tell this client to go bye-bye. |
int |
getID()
Accessor |
long |
getLastReceived()
system (local) time when the last message was received from this client |
long |
getLastSent()
system (local) time when the last message was sent to this client |
Message |
receiveMessage()
the server calls this method to find out if a message is available and, if so, to receive it |
void |
sendMessage(Message m)
Send a message down the socket |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RemoteClient(java.net.Socket socket,
int id)
throws java.io.IOException
| Method Detail |
public int getID()
getID in interface Clientpublic long getLastSent()
Client
getLastSent in interface Clientpublic long getLastReceived()
Client
getLastReceived in interface Client
public void sendMessage(Message m)
throws java.io.IOException
sendMessage in interface Clientjava.io.IOException
public Message receiveMessage()
throws java.io.IOException
Client
receiveMessage in interface Clientjava.io.IOExceptionpublic void close()
Client
close in interface Clientpublic java.lang.String toString()
toString in class java.lang.Object
|
Documentation generated March 5 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||