Interface NetherNetServerSignaling

All Superinterfaces:
AutoCloseable, NetherNetSignaling
All Known Implementing Classes:
AbstractNetherNetXboxSignaling, NetherNetDiscoverySignaling, NetherNetHTTPSignaling, NetherNetXboxRpcSignaling, NetherNetXboxSignaling

public interface NetherNetServerSignaling extends NetherNetSignaling
  • Method Details

    • bind

      void bind(SocketAddress localAddress, io.netty.channel.EventLoop eventLoop) throws ConnectException
      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

      void setNewConnectionHandler(NetherNetServerSignaling.NewConnectionHandler handler)
      Handler for new connections.
      Parameters:
      handler - Functional interface receiving (ConnectionID, RemoteNetworkID, Payload)
    • setAdvertisementData

      void setAdvertisementData(NetherNetServerSignaling.PongData pongData)
      Sets the advertisement data for the discovery mechanism (e.g. LAN Pong).
      Parameters:
      pongData - The Pong advertisement data.
    • getIceServers

      default List<NetherNetSignaling.IceServerInfo> getIceServers()
      Returns the ICE servers (STUN/TURN) obtained from the signaling handshake. Returns empty list if none available or not applicable.
    • serverIdentity

      default ServerIdentity 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