|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlime.ConnectionMgr.Connection
Connection manages the TCP connection to a remote host.
Field Summary | |
(package private) boolean |
dead
Keeps track of whether this connection is still open. |
(package private) java.io.ObjectInputStream |
is
The input stream from the socket. |
(package private) LimeServerID |
key
The key that uniquely(?) identifies this connection. |
(package private) java.io.ObjectOutputStream |
os
The output stream from the socket. |
(package private) java.net.Socket |
socket
The TCP socket opened by this connection. |
Constructor Summary | |
(package private) |
ConnectionMgr.Connection(LimeServerID l)
Creates a connection to the specified LimeServer. |
(package private) |
ConnectionMgr.Connection(java.net.Socket socket)
Creates a connection for the given socket. |
Method Summary | |
void |
close()
Closes the socket managed by this connection. |
private void |
setStreams()
Initializes the input and output streams of this connection. |
java.lang.String |
toString()
Returns a string representation of this connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
java.net.Socket socket
java.io.ObjectInputStream is
java.io.ObjectOutputStream os
LimeServerID key
boolean dead
Constructor Detail |
ConnectionMgr.Connection(java.net.Socket socket)
ConnectionMgr.Connection(LimeServerID l)
Method Detail |
public void close()
public java.lang.String toString()
private void setStreams()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |