Class ProxyProtocolDecoder
java.lang.Object
org.geysermc.geyser.network.netty.proxy.ProxyProtocolDecoder
Decodes an HAProxy proxy protocol header
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable io.netty.handler.codec.haproxy.HAProxyMessagedecode(io.netty.buffer.ByteBuf packet, int version) static io.netty.handler.codec.ProtocolDetectionResult<io.netty.handler.codec.haproxy.HAProxyProtocolVersion>detectProtocol(io.netty.buffer.ByteBuf buffer) Returns theProtocolDetectionResultfor the givenByteBuf.static intfindVersion(io.netty.buffer.ByteBuf buffer)
-
Method Details
-
decode
public static @Nullable io.netty.handler.codec.haproxy.HAProxyMessage decode(io.netty.buffer.ByteBuf packet, int version) -
findVersion
public static int findVersion(io.netty.buffer.ByteBuf buffer) -
detectProtocol
public static io.netty.handler.codec.ProtocolDetectionResult<io.netty.handler.codec.haproxy.HAProxyProtocolVersion> detectProtocol(io.netty.buffer.ByteBuf buffer) Returns theProtocolDetectionResultfor the givenByteBuf.
-