org.gudy.azureus2.pluginsimpl.local.peers
Class PeerForeignNetworkConnection

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.NetworkConnectionHelper
      extended by org.gudy.azureus2.pluginsimpl.local.peers.PeerForeignNetworkConnection
All Implemented Interfaces:
NetworkConnectionBase

public class PeerForeignNetworkConnection
extends NetworkConnectionHelper


Nested Class Summary
protected  class PeerForeignNetworkConnection.imq
           
protected  class PeerForeignNetworkConnection.omq
           
protected  class PeerForeignNetworkConnection.tp
           
 
Constructor Summary
protected PeerForeignNetworkConnection(PeerForeignDelegate _delegate, Peer _peer)
           
 
Method Summary
 ConnectionEndpoint getEndpoint()
           
 IncomingMessageQueue getIncomingMessageQueue()
          Get the connection's incoming message queue.
 int getMssSize()
           
 OutgoingMessageQueue getOutgoingMessageQueue()
          Get the connection's outgoing message queue.
 String getString()
           
 TransportBase getTransportBase()
          Get the connection's data transport interface.
 boolean isIncoming()
           
 boolean isLANLocal()
          Is the connection within the local LAN network.
 void notifyOfException(Throwable error)
          Inform connection of a thrown exception.
 
Methods inherited from class com.aelitis.azureus.core.networkmanager.NetworkConnectionHelper
addRateLimiter, getDownloadLimit, getRateLimiters, getUploadLimit, removeRateLimiter, setDownloadLimit, setUploadLimit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerForeignNetworkConnection

protected PeerForeignNetworkConnection(PeerForeignDelegate _delegate,
                                       Peer _peer)
Method Detail

getEndpoint

public ConnectionEndpoint getEndpoint()

notifyOfException

public void notifyOfException(Throwable error)
Description copied from interface: NetworkConnectionBase
Inform connection of a thrown exception.

Parameters:
error - exception

getOutgoingMessageQueue

public OutgoingMessageQueue getOutgoingMessageQueue()
Description copied from interface: NetworkConnectionBase
Get the connection's outgoing message queue.

Returns:
outbound message queue

getIncomingMessageQueue

public IncomingMessageQueue getIncomingMessageQueue()
Description copied from interface: NetworkConnectionBase
Get the connection's incoming message queue.

Returns:
inbound message queue

getTransportBase

public TransportBase getTransportBase()
Description copied from interface: NetworkConnectionBase
Get the connection's data transport interface.

Returns:
the transport - MAY BE NULL if not yet fully connected

getMssSize

public int getMssSize()

isIncoming

public boolean isIncoming()

isLANLocal

public boolean isLANLocal()
Description copied from interface: NetworkConnectionBase
Is the connection within the local LAN network.

Returns:
true if within LAN, false of outside the LAN segment

getString

public String getString()