testHostNotEncodedForUnknown() — netty Function Reference
Architecture documentation for the testHostNotEncodedForUnknown() function in SocksCmdRequestTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b0db8976_4322_6537_0fcd_47f4e7b63be8["testHostNotEncodedForUnknown()"] 40e986d6_a601_2eef_0944_4ce79e241e60["SocksCmdRequestTest"] b0db8976_4322_6537_0fcd_47f4e7b63be8 -->|defined in| 40e986d6_a601_2eef_0944_4ce79e241e60 style b0db8976_4322_6537_0fcd_47f4e7b63be8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdRequestTest.java lines 85–104
@Test
public void testHostNotEncodedForUnknown() {
String asciiHost = "xn--e1aybc.xn--p1ai";
short port = 10000;
SocksCmdRequest rq = new SocksCmdRequest(SocksCmdType.BIND, SocksAddressType.UNKNOWN, asciiHost, port);
assertEquals(asciiHost, rq.host());
ByteBuf buffer = Unpooled.buffer(16);
rq.encodeAsByteBuf(buffer);
buffer.resetReaderIndex();
assertEquals(SocksProtocolVersion.SOCKS5.byteValue(), buffer.readByte());
assertEquals(SocksCmdType.BIND.byteValue(), buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(SocksAddressType.UNKNOWN.byteValue(), buffer.readByte());
assertFalse(buffer.isReadable());
buffer.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testHostNotEncodedForUnknown() do?
testHostNotEncodedForUnknown() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdRequestTest.java.
Where is testHostNotEncodedForUnknown() defined?
testHostNotEncodedForUnknown() is defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdRequestTest.java at line 85.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free