Class DiagnosticExchange

java.lang.Object
org.cloudburstmc.netty.signaling.diagnostic.DiagnosticExchange

public final class DiagnosticExchange extends Object
One reliable PING/PONG on the admitted, pinned DTLS connection.
  • Field Details

  • Constructor Details

    • DiagnosticExchange

      public DiagnosticExchange(String attemptIdHex, boolean host, DiagnosticExchange.Sender sender)
      Callers must validate admission, pinned DTLS and the selected endpoint before starting.
  • Method Details

    • start

      public void start()
    • receive

      public void receive(int channel, byte[] input)
    • complete

      public boolean complete()
      Only the prober can verify that its original random PING was echoed.
    • sentFrames

      public int sentFrames()
    • sentBytes

      public int sentBytes()
    • receivedFrames

      public int receivedFrames()
    • receivedBytes

      public int receivedBytes()
    • encode

      public static byte[] encode(String attemptIdHex, int kind, int channel, byte[] value)