Class SocksDetector
java.lang.Object
software.xdev.mockserver.netty.proxy.socks.SocksDetector
This class is expected to be used from within a
ReplayingDecoder, or with enough bytes available. Readable
bytes are not checked and so if not enough bytes are supplied, index exceptions will arise.-
Method Summary
-
Method Details
-
isSocks4
public static boolean isSocks4(io.netty.buffer.ByteBuf msg, int actualReadableBytes) -
isSocks5
public static boolean isSocks5(io.netty.buffer.ByteBuf msg, int actualReadableBytes)
-