Class HttpSignalingSettings

java.lang.Object
org.cloudburstmc.netty.channel.nethernet.signaling.HttpSignalingSettings

public final class HttpSignalingSettings extends Object
How NetherNetHTTPClientSignaling reaches an endpoint. Immutable; DEFAULT does what the retail client does. Share one across connections: the HTTP client behind it is built once per settings object, and a signaling is made per connection.
  • Field Details

  • Method Details

    • scheme

    • iceServers

      public List<IceServerInfo> iceServers()
    • sslContext

      public @Nullable SSLContext sslContext()
      The trust HTTPS validates the server against, or null for the JDK default.
    • withScheme

    • withIceServers

      public HttpSignalingSettings withIceServers(Collection<IceServerInfo> iceServers)
      Parameters:
      iceServers - The STUN and TURN servers to gather through. Every one of them has to answer or time out before the offer can go, since nothing trickles after it
      Returns:
      The settings with those servers
    • withSslContext

      public HttpSignalingSettings withSslContext(SSLContext sslContext)
      Parameters:
      sslContext - The trust to validate the server's certificate with, for a private CA
      Returns:
      The settings with that trust
    • withClientInfo

      public HttpSignalingSettings withClientInfo(String version, int protocol, int platform)
      Tells the server about the client in the probe's query, as the retail client does.
      Parameters:
      version - The game version, such as 1.26.60.29
      protocol - The network protocol version
      platform - The build platform, such as 8 for Win32
      Returns:
      The settings with that client info