Class UDPTransport

java.lang.Object
com.biglybt.core.networkmanager.impl.TransportImpl
com.biglybt.core.networkmanager.impl.udp.UDPTransport
All Implemented Interfaces:
Transport, TransportBase

public class UDPTransport extends TransportImpl
  • Field Details

    • LOGID

      private static final LogIDs LOGID
    • endpoint

      private final ProtocolEndpointUDP endpoint
    • shared_secrets

      private byte[][] shared_secrets
    • transport_mode

      private int transport_mode
    • closed

      private volatile boolean closed
  • Constructor Details

  • Method Details

    • isTCP

      public boolean isTCP()
    • isSOCKS

      public boolean isSOCKS()
      Specified by:
      isSOCKS in interface Transport
      Overrides:
      isSOCKS in class TransportImpl
    • getProtocol

      public String getProtocol()
      Specified by:
      getProtocol in interface Transport
      Overrides:
      getProtocol in class TransportImpl
    • getTransportEndpoint

      public TransportEndpoint getTransportEndpoint()
      Description copied from interface: Transport
      Get the socket channel used by the transport.
      Returns:
      the socket channel
    • getTransportStartpoint

      public TransportStartpoint getTransportStartpoint()
      Specified by:
      getTransportStartpoint in interface Transport
      Overrides:
      getTransportStartpoint in class TransportImpl
    • getMssSize

      public int getMssSize()
    • getDescription

      public String getDescription()
      Description copied from interface: TransportBase
      Get a textual description for this transport.
      Returns:
      description
    • setTransportMode

      public void setTransportMode(int mode)
      Description copied from interface: Transport
      Set the transport to the given speed mode.
      Parameters:
      mode - to change to
    • getTransportMode

      public int getTransportMode()
      Description copied from interface: Transport
      Get the transport's speed mode.
      Returns:
      current mode
    • connectOutbound

      public void connectOutbound(ByteBuffer initial_data, Transport.ConnectListener listener, int priority)
      Description copied from interface: Transport
      Kick off an outbound connection
      Parameters:
      listener -
    • close

      public void close(String reason)
      Description copied from interface: Transport
      Close the transport connection.
    • isClosed

      public boolean isClosed()