Class HttpSignalingSettings
java.lang.Object
org.cloudburstmc.netty.channel.nethernet.signaling.HttpSignalingSettings
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhich scheme the signaling speaks. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionscheme()@Nullable SSLContextThe trust HTTPS validates the server against, or null for the JDK default.withClientInfo(String version, int protocol, int platform) Tells the server about the client in the probe's query, as the retail client does.withIceServers(Collection<IceServerInfo> iceServers) withSslContext(SSLContext sslContext)
-
Field Details
-
DEFAULT
-
-
Method Details
-
scheme
-
iceServers
-
sslContext
The trust HTTPS validates the server against, or null for the JDK default. -
withScheme
-
withIceServers
- 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
- Parameters:
sslContext- The trust to validate the server's certificate with, for a private CA- Returns:
- The settings with that trust
-
withClientInfo
Tells the server about the client in the probe's query, as the retail client does.- Parameters:
version- The game version, such as1.26.60.29protocol- The network protocol versionplatform- The build platform, such as8for Win32- Returns:
- The settings with that client info
-