Class UDPTransport

    • Field Detail

      • LOGID

        private static final LogIDs LOGID
      • shared_secrets

        private byte[][] shared_secrets
      • transport_mode

        private int transport_mode
      • closed

        private volatile boolean closed
    • Method Detail

      • isTCP

        public boolean isTCP()
      • getTransportEndpoint

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

        public int getMssSize()
      • getDescription

        public java.lang.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​(java.nio.ByteBuffer initial_data,
                                    Transport.ConnectListener listener,
                                    int priority)
        Description copied from interface: Transport
        Kick off an outbound connection
      • close

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

        public boolean isClosed()