Package com.biglybt.pifimpl.local.peers
Class PeerForeignNetworkConnection
java.lang.Object
com.biglybt.core.networkmanager.NetworkConnectionHelper
com.biglybt.pifimpl.local.peers.PeerForeignNetworkConnection
- All Implemented Interfaces:
NetworkConnectionBase
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected class
protected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PeerForeignDelegate
private IncomingMessageQueue
private OutgoingMessageQueue
private final Peer
private TransportBase
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PeerForeignNetworkConnection
(PeerForeignDelegate _delegate, Peer _peer) -
Method Summary
Modifier and TypeMethodDescriptionGet the connection's incoming message queue.int
Get the connection's outgoing message queue.Get the connection's data transport interface.boolean
isClosed()
boolean
boolean
Is the connection within the local LAN network.void
notifyOfException
(Throwable error) Inform connection of a thrown exception.void
Methods inherited from class com.biglybt.core.networkmanager.NetworkConnectionHelper
addRateLimiter, getDownloadLimit, getRateLimiters, getUploadLimit, removeRateLimiter, setDownloadLimit, setUploadLimit
-
Field Details
-
delegate
-
peer
-
outgoing_message_queue
-
incoming_message_queue
-
transport_base
-
-
Constructor Details
-
PeerForeignNetworkConnection
-
-
Method Details
-
getEndpoint
-
notifyOfException
Description copied from interface:NetworkConnectionBase
Inform connection of a thrown exception.- Parameters:
error
- exception
-
getOutgoingMessageQueue
Description copied from interface:NetworkConnectionBase
Get the connection's outgoing message queue.- Returns:
- outbound message queue
-
getIncomingMessageQueue
Description copied from interface:NetworkConnectionBase
Get the connection's incoming message queue.- Returns:
- inbound message queue
-
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
-
resetLANLocalStatus
public void resetLANLocalStatus() -
isClosed
public boolean isClosed() -
getString
-