IncompatibleProtocolException

class IncompatibleProtocolException(val remoteVersion: Int?, val localVersion: Int) : Exception(source)

The server's handshake reply announced a different wire-protocol major than this build speaks. Raised by MultiConnectionUDPClient.handshake when the REGISTERED reply is not this build's exact REGISTERED 2: a bare REGISTERED from a pre-2.0 server (remoteVersion 1), or REGISTERED n for some other n.

Sibling of HandshakeRefusedException: a clean, typed, early handshake() failure rather than a "registered" connection that then exchanges framed data the peer delivers to its application as garbage. Both ends must be on webtools-udp 2.0.0+.

Constructors

Link copied to clipboard
constructor(remoteVersion: Int?, localVersion: Int)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

the wire major this build speaks (TransportWireFormat.FRAMED_PROTOCOL_VERSION)

Link copied to clipboard
open val message: String?
Link copied to clipboard

the wire major the server's reply announced (1 for a bare REGISTERED), or null if the reply was not a REGISTERED[ n] line