Interface NetworkConnectionBase

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

public interface NetworkConnectionBase
  • Method Details

    • getEndpoint

      ConnectionEndpoint getEndpoint()
    • notifyOfException

      void notifyOfException(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
    • resetLANLocalStatus

      void resetLANLocalStatus()
    • isClosed

      boolean isClosed()
    • 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

      String getString()