-
Nested Class Summary
Nested Classes
static interface
Functional interface for new connection handling.
static final record
Data structure for Pong advertisement data.
-
Method Summary
default boolean
Whether ICE may bind to the address the channel was bound to, instead of an ephemeral port.
void
Binds the signaling medium to listen for incoming connections (Server mode).
Returns the ICE servers (STUN/TURN) obtained from the signaling handshake.
Returns the identity used to sign SDP answers, or null to have the channel generate an ephemeral one.
void
Sets the advertisement data for the discovery mechanism (e.g.
void
Handler for new connections.
default boolean
Whether this signaling can deliver ICE candidates incrementally after the answer has been sent.
-
Method Details
-
bind
Binds the signaling medium to listen for incoming connections (Server mode).
- Parameters:
localAddress - The local address to bind to.
eventLoop - The owning channel's event loop.
- Throws:
ConnectException
-
setNewConnectionHandler
Handler for new connections.
- Parameters:
handler - Functional interface receiving (ConnectionID, RemoteNetworkID, Payload)
-
setAdvertisementData
Sets the advertisement data for the discovery mechanism (e.g. LAN Pong).
- Parameters:
pongData - The Pong advertisement data.
-
getIceServers
Returns the ICE servers (STUN/TURN) obtained from the signaling handshake.
Returns empty list if none available or not applicable.
-
serverIdentity
Returns the identity used to sign SDP answers, or null to have the channel generate an ephemeral one.
- Returns:
- The server identity, or null if this signaling has none
-
allowsIceOnLocalPort
default boolean allowsIceOnLocalPort()
Whether ICE may bind to the address the channel was bound to, instead of an ephemeral port.
- Returns:
- true if ICE should be pinned to the bound address
-
usesTrickleIce
default boolean usesTrickleIce()
Whether this signaling can deliver ICE candidates incrementally after the answer has been sent.
- Returns:
- true if candidates are trickled as they are gathered