|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlime.ConnectionMgr
The ConnectionMgr manages "Connection" objects, which are TCP connections to remote hosts.
Nested Class Summary | |
(package private) class |
ConnectionMgr.Connection
Connection manages the TCP connection to a remote host. |
Field Summary | |
(package private) java.util.Hashtable |
connections
Holds all of the connections managed by this class. |
(package private) boolean |
isConnect
If true, then permanent connections are allowed. |
Constructor Summary | |
(package private) |
ConnectionMgr(boolean isConnect)
Creates a ConnectionMgr with the specified connection setting. |
Method Summary | |
(package private) ConnectionMgr.Connection |
add(java.net.Socket s)
Adds a socket to be controlled by the Connection Manager. |
(package private) void |
close(ConnectionMgr.Connection connection)
Closes the socket managed by the connection. |
(package private) void |
closeAll()
Closes all of the connections created. |
(package private) ConnectionMgr.Connection |
get(LimeServerID lsID)
Returns the eonnection to the LimeServer with the specified LimeServerID. |
(package private) boolean |
isPermanent()
Returns whether connections established by this class are permanent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.util.Hashtable connections
boolean isConnect
Constructor Detail |
ConnectionMgr(boolean isConnect)
isConnect
- true if the connection is a permanent connection.Method Detail |
boolean isPermanent()
ConnectionMgr.Connection get(LimeServerID lsID)
ConnectionMgr.Connection add(java.net.Socket s)
s
- the socket to be controlled by this connection manager.
void close(ConnectionMgr.Connection connection)
void closeAll()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |