com.aelitis.azureus.core.networkmanager
Interface NetworkConnectionBase

All Known Subinterfaces:
NetworkConnection
All Known Implementing Classes:
NetworkConnectionHelper, NetworkConnectionImpl, PeerForeignNetworkConnection

public interface NetworkConnectionBase


Method Summary
 void addRateLimiter(LimitedRateGroup limiter, boolean upload)
           
 int getDownloadLimit()
           
 ConnectionEndpoint getEndpoint()
           
 IncomingMessageQueue getIncomingMessageQueue()
          Get the connection's incoming message queue.
 int getMssSize()
           
 OutgoingMessageQueue getOutgoingMessageQueue()
          Get the connection's outgoing message queue.
 LimitedRateGroup[] getRateLimiters(boolean upload)
           
 java.lang.String getString()
           
 TransportBase getTransportBase()
          Get the connection's data transport interface.
 int getUploadLimit()
           
 boolean isIncoming()
           
 boolean isLANLocal()
          Is the connection within the local LAN network.
 void notifyOfException(java.lang.Throwable error)
          Inform connection of a thrown exception.
 void removeRateLimiter(LimitedRateGroup limiter, boolean upload)
           
 void setDownloadLimit(int limit)
           
 void setUploadLimit(int limit)
           
 

Method Detail

getEndpoint

ConnectionEndpoint getEndpoint()

notifyOfException

void notifyOfException(java.lang.Throwable error)
Inform connection of a thrown exception.

Parameters:
error - exception

getOutgoingMessageQueue

OutgoingMessageQueue getOutgoingMessageQueue()
Get the connection's outgoing message queue.

Returns:
outbound message queue

getIncomingMessageQueue

IncomingMessageQueue getIncomingMessageQueue()
Get the connection's incoming message queue.

Returns:
inbound message queue

getTransportBase

TransportBase getTransportBase()
Get the connection's data transport interface.

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

getMssSize

int getMssSize()

isIncoming

boolean isIncoming()

isLANLocal

boolean isLANLocal()
Is the connection within the local LAN network.

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

setUploadLimit

void setUploadLimit(int limit)

getUploadLimit

int getUploadLimit()

setDownloadLimit

void setDownloadLimit(int limit)

getDownloadLimit

int getDownloadLimit()

getRateLimiters

LimitedRateGroup[] getRateLimiters(boolean upload)

addRateLimiter

void addRateLimiter(LimitedRateGroup limiter,
                    boolean upload)

removeRateLimiter

void removeRateLimiter(LimitedRateGroup limiter,
                       boolean upload)

getString

java.lang.String getString()