|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionServices
| Method Summary | |
|---|---|
void |
connect()
Connects to the network. |
void |
connectToHostAsynchronously(String hostname,
int portnum,
SocketsManager.ConnectType type)
Creates a new outgoing messaging connection to the given host and port. |
int |
countConnectionsWithNMessages(int messageThreshold)
Count how many connections have already received N messages |
void |
disconnect()
Disconnects from the network. |
int |
getActiveConnectionMessages()
Count up all the messages on active connections |
int |
getNumInitializedConnections()
Returns the number of initialized messaging connections. |
Collection<IpPort> |
getPreferencedHosts(boolean isUltrapeer,
String locale,
int num)
Returns a collection of IpPorts, preferencing hosts with open slots. |
boolean |
isActiveSuperNode()
Tells whether the node is currently connected to the network as a supernode or not. |
boolean |
isConnected()
Returns whether or not this client currently has any initialized connections. |
boolean |
isConnectedTo(InetAddress addr)
Determines if you're connected to the given host. |
boolean |
isConnecting()
Returns whether or not this client is attempting to connect. |
boolean |
isFullyConnected()
Returns whether or not this client currently has any initialized connections. |
boolean |
isShieldedLeaf()
Accessor for whether or not this node is a shielded leaf. |
boolean |
isSupernode()
Tells whether the node is a supernode or not. |
void |
removeConnection(RoutedConnection c)
Closes and removes the given connection. |
| Method Detail |
|---|
boolean isShieldedLeaf()
boolean isActiveSuperNode()
boolean isSupernode()
boolean isConnecting()
boolean isConnected()
boolean isFullyConnected()
Collection<IpPort> getPreferencedHosts(boolean isUltrapeer,
String locale,
int num)
num - How many endpoints to try to getint countConnectionsWithNMessages(int messageThreshold)
int getActiveConnectionMessages()
void removeConnection(RoutedConnection c)
void disconnect()
void connect()
boolean isConnectedTo(InetAddress addr)
void connectToHostAsynchronously(String hostname,
int portnum,
SocketsManager.ConnectType type)
int getNumInitializedConnections()
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||