Class BuiltinFlags

java.lang.Object
org.geysermc.mcprotocollib.network.BuiltinFlags

public class BuiltinFlags extends Object
Built-in PacketLib session flags.
  • Field Details

    • CLIENT_PROXIED_ADDRESS

      public static final Flag<InetSocketAddress> CLIENT_PROXIED_ADDRESS
      Enables HAProxy protocol support. When this value is not null it represents the ip and port the client claims the connection is from.
    • CLIENT_TRANSFERRING

      public static final Flag<Boolean> CLIENT_TRANSFERRING
      Whether the current client is transferring.
    • ATTEMPT_SRV_RESOLVE

      public static final Flag<Boolean> ATTEMPT_SRV_RESOLVE
      When set to false, an SRV record resolve is not attempted.
    • TCP_FAST_OPEN

      public static final Flag<Boolean> TCP_FAST_OPEN
      When set to true, the client or server will attempt to use TCP Fast Open if supported.
    • CLIENT_CONNECT_TIMEOUT

      public static final Flag<Integer> CLIENT_CONNECT_TIMEOUT
      Connection timeout in seconds. Only used by the client.
    • READ_TIMEOUT

      public static final Flag<Integer> READ_TIMEOUT
      Read timeout in seconds. Used by both the server and client.
    • WRITE_TIMEOUT

      public static final Flag<Integer> WRITE_TIMEOUT
      Write timeout in seconds. Used by both the server and client.