Class DiagnosticExchange
java.lang.Object
org.cloudburstmc.netty.signaling.diagnostic.DiagnosticExchange
One reliable PING/PONG on the admitted, pinned DTLS connection.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionDiagnosticExchange(String attemptIdHex, boolean host, DiagnosticExchange.Sender sender) Callers must validate admission, pinned DTLS and the selected endpoint before starting. -
Method Summary
-
Field Details
-
FRAME_BYTES
public static final int FRAME_BYTES- See Also:
-
PING
public static final int PING- See Also:
-
PONG
public static final int PONG- See Also:
-
-
Constructor Details
-
DiagnosticExchange
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
-