Package com.biglybt.core.networkmanager
Interface NetworkConnectionBase
- All Known Subinterfaces:
NetworkConnection
- All Known Implementing Classes:
NetworkConnectionHelper
,NetworkConnectionImpl
,PeerForeignNetworkConnection
public interface NetworkConnectionBase
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRateLimiter
(LimitedRateGroup limiter, boolean upload) int
Get the connection's incoming message queue.int
Get the connection's outgoing message queue.getRateLimiters
(boolean upload) Get the connection's data transport interface.int
boolean
isClosed()
boolean
boolean
Is the connection within the local LAN network.void
notifyOfException
(Throwable error) Inform connection of a thrown exception.void
removeRateLimiter
(LimitedRateGroup limiter, boolean upload) void
void
setDownloadLimit
(int limit) void
setUploadLimit
(int limit)
-
Method Details
-
getEndpoint
ConnectionEndpoint getEndpoint() -
notifyOfException
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
-
resetLANLocalStatus
void resetLANLocalStatus() -
isClosed
boolean isClosed() -
setUploadLimit
void setUploadLimit(int limit) -
getUploadLimit
int getUploadLimit() -
setDownloadLimit
void setDownloadLimit(int limit) -
getDownloadLimit
int getDownloadLimit() -
getRateLimiters
-
addRateLimiter
-
removeRateLimiter
-
getString
String getString()
-