|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.NetworkManagerImpl
public class NetworkManagerImpl
| Constructor Summary | |
|---|---|
NetworkManagerImpl(com.google.inject.Provider<UDPService> udpService,
com.google.inject.Provider<Acceptor> acceptor,
com.google.inject.Provider<DHTManager> dhtManager,
com.google.inject.Provider<ConnectionManager> connectionManager,
OutOfBandStatistics outOfBandStatistics,
NetworkInstanceUtils networkInstanceUtils,
com.google.inject.Provider<CapabilitiesVMFactory> capabilitiesVMFactory,
com.google.inject.Provider<ByteBufferCache> bbCache,
ApplicationServices applicationServices)
|
|
| Method Summary | |
|---|---|
boolean |
acceptedIncomingConnection()
Returns true if this has accepted an incoming connection, and hence probably isn't firewalled. |
void |
addListener(EventListener<AddressEvent> listener)
Adds the listener. |
boolean |
addressChanged()
Notifies components that this' IP address has changed. |
boolean |
canDoFWT()
|
boolean |
canReceiveSolicited()
|
boolean |
canReceiveUnsolicited()
|
void |
externalAddressChanged()
used to notify the NetworkManager of a change in
the external IP. |
byte[] |
getAddress()
Returns the raw IP address for this host. |
byte[] |
getExternalAddress()
Returns the external IP address for this host. |
byte[] |
getNonForcedAddress()
Returns the Non-Forced IP address for this host. |
int |
getNonForcedPort()
Returns the Non-Forced port for this host. |
int |
getPort()
Returns the port used for downloads and messaging connections. |
Connectable |
getPublicAddress()
Returns the external, public address of this peer. |
String |
getServiceName()
|
GUID |
getSolicitedGUID()
|
int |
getStableUDPPort()
|
GUID |
getUDPConnectBackGUID()
|
boolean |
incomingStatusChanged()
Notification that we've either just set or unset acceptedIncoming. |
void |
initialize()
|
boolean |
isGUESSCapable()
Returns whether or not this node is capable of sending its own GUESS queries. |
boolean |
isIncomingTLSEnabled()
Whether or not incoming TLS is allowed. |
boolean |
isIpPortValid()
|
boolean |
isOOBCapable()
Returns whether or not this node is capable of performing OOB queries. |
boolean |
isOutgoingTLSEnabled()
Whether or not outgoing TLS is allowed. |
boolean |
isPrivateAddress(byte[] addr)
|
boolean |
isTLSSupported()
Returns true if TLS is disabled for this session. |
void |
newPushProxies(Set<Connectable> pushProxies)
used to notify the NetworkManager of a new
MediatorAddress (i.e., push proxy) |
void |
portChanged()
used to notify the NetworkManager of a change in
the port. |
boolean |
removeListener(EventListener<AddressEvent> listener)
Returns true if the listener was removed. |
void |
setIncomingTLSEnabled(boolean enabled)
|
void |
setListeningPort(int port)
Sets the port on which to listen for incoming connections. |
void |
setOutgoingTLSEnabled(boolean enabled)
|
void |
start()
|
void |
stop()
|
int |
supportsFWTVersion()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public NetworkManagerImpl(com.google.inject.Provider<UDPService> udpService,
com.google.inject.Provider<Acceptor> acceptor,
com.google.inject.Provider<DHTManager> dhtManager,
com.google.inject.Provider<ConnectionManager> connectionManager,
OutOfBandStatistics outOfBandStatistics,
NetworkInstanceUtils networkInstanceUtils,
com.google.inject.Provider<CapabilitiesVMFactory> capabilitiesVMFactory,
com.google.inject.Provider<ByteBufferCache> bbCache,
ApplicationServices applicationServices)
| Method Detail |
|---|
public void start()
start in interface Servicepublic void stop()
stop in interface Servicepublic void initialize()
initialize in interface Servicepublic String getServiceName()
getServiceName in interface Servicepublic boolean isIpPortValid()
isIpPortValid in interface NetworkManagerpublic GUID getUDPConnectBackGUID()
getUDPConnectBackGUID in interface NetworkManagerpublic boolean isOOBCapable()
NetworkManager
isOOBCapable in interface NetworkManagerpublic boolean isGUESSCapable()
NetworkManager
isGUESSCapable in interface NetworkManagerpublic int getNonForcedPort()
NetworkManager
getNonForcedPort in interface NetworkManagerpublic int getPort()
NetworkManager
getPort in interface NetworkManagerAcceptor.getPort(boolean)public byte[] getNonForcedAddress()
NetworkManager
getNonForcedAddress in interface NetworkManagerpublic byte[] getAddress()
NetworkManager
getAddress in interface NetworkManagerpublic byte[] getExternalAddress()
NetworkManager
getExternalAddress in interface NetworkManagerpublic boolean incomingStatusChanged()
NetworkManager
incomingStatusChanged in interface NetworkManagerpublic boolean addressChanged()
NetworkManager
addressChanged in interface NetworkManagerpublic void externalAddressChanged()
NetworkManagerNetworkManager of a change in
the external IP.
externalAddressChanged in interface NetworkManagerpublic void portChanged()
NetworkManagerNetworkManager of a change in
the port.
portChanged in interface NetworkManagerpublic void newPushProxies(Set<Connectable> pushProxies)
NetworkManagerNetworkManager of a new
MediatorAddress (i.e., push proxy)
newPushProxies in interface NetworkManagerpublic Connectable getPublicAddress()
NetworkManagerinvalid
address if no address is known yet.
Will return the external address whether the peer is firewalled or not.
getPublicAddress in interface NetworkManagerpublic boolean acceptedIncomingConnection()
NetworkManager
acceptedIncomingConnection in interface NetworkManager
public void setListeningPort(int port)
throws IOException
NetworkManager
setListeningPort in interface NetworkManagerIOExceptionpublic boolean canReceiveUnsolicited()
canReceiveUnsolicited in interface NetworkManagerpublic boolean canReceiveSolicited()
canReceiveSolicited in interface NetworkManagerpublic boolean canDoFWT()
canDoFWT in interface NetworkManagerpublic int getStableUDPPort()
getStableUDPPort in interface NetworkManagerpublic GUID getSolicitedGUID()
getSolicitedGUID in interface NetworkManagerpublic int supportsFWTVersion()
supportsFWTVersion in interface NetworkManagerpublic boolean isPrivateAddress(byte[] addr)
public boolean isTLSSupported()
isTLSSupported in interface TLSManagerpublic boolean isIncomingTLSEnabled()
isIncomingTLSEnabled in interface TLSManagerpublic void setIncomingTLSEnabled(boolean enabled)
setIncomingTLSEnabled in interface TLSManagerpublic boolean isOutgoingTLSEnabled()
isOutgoingTLSEnabled in interface TLSManagerpublic void setOutgoingTLSEnabled(boolean enabled)
setOutgoingTLSEnabled in interface TLSManagerpublic void addListener(EventListener<AddressEvent> listener)
ListenerSupport
addListener in interface ListenerSupport<AddressEvent>public boolean removeListener(EventListener<AddressEvent> listener)
ListenerSupport
removeListener in interface ListenerSupport<AddressEvent>
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||