public class SocksDetector extends Object
ReplayingDecoder
, or with enough bytes available.
Readable bytes are not checked and so if not enough bytes are supplied, index exceptions will arise.Modifier and Type | Method and Description |
---|---|
static boolean |
isSocks4(io.netty.buffer.ByteBuf msg,
int actualReadableBytes) |
static boolean |
isSocks5(io.netty.buffer.ByteBuf msg,
int actualReadableBytes) |
Copyright © 2020. All rights reserved.