Class PeerForeignNetworkConnection
java.lang.Object
com.biglybt.core.networkmanager.NetworkConnectionHelper
com.biglybt.pifimpl.local.peers.PeerForeignNetworkConnection
- All Implemented Interfaces:
ControllerAllocationManagement, NetworkConnectionBase
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PeerForeignDelegateprivate IncomingMessageQueueprivate OutgoingMessageQueueprivate final Peerprivate TransportBaseFields inherited from interface ControllerAllocationManagement
UNALLOCATED_PARTITION -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPeerForeignNetworkConnection(PeerForeignDelegate _delegate, Peer _peer) -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the connection's incoming message queue.intGet the connection's outgoing message queue.Get the connection's data transport interface.booleanisClosed()booleanbooleanIs the connection within the local LAN network.voidnotifyOfException(Throwable error) Inform connection of a thrown exception.voidMethods inherited from class NetworkConnectionHelper
activeReadControllerRelease, activeWriteControllerRelease, addRateLimiter, getDownloadLimit, getPartitionID, getRateLimiters, getUploadLimit, isReadControllerActive, isWriteControllerActive, removeRateLimiter, setDownloadLimit, setReadControllerInactive, setTargetReadControllerPartition, setTargetWriteControllerPartition, setUploadLimit, setWriteControllerInactive
-
Field Details
-
delegate
-
peer
-
outgoing_message_queue
-
incoming_message_queue
-
transport_base
-
-
Constructor Details
-
PeerForeignNetworkConnection
-
-
Method Details
-
getEndpoint
-
notifyOfException
Description copied from interface:NetworkConnectionBaseInform connection of a thrown exception.- Parameters:
error- exception
-
getOutgoingMessageQueue
Description copied from interface:NetworkConnectionBaseGet the connection's outgoing message queue.- Returns:
- outbound message queue
-
getIncomingMessageQueue
Description copied from interface:NetworkConnectionBaseGet the connection's incoming message queue.- Returns:
- inbound message queue
-
getTransportBase
Description copied from interface:NetworkConnectionBaseGet 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:NetworkConnectionBaseIs the connection within the local LAN network.- Returns:
- true if within LAN, false of outside the LAN segment
-
resetLANLocalStatus
public void resetLANLocalStatus() -
close
- Specified by:
closein classNetworkConnectionHelper
-
isClosed
public boolean isClosed() -
getString
-