testHostNotEncodedForUnknown() — netty Function Reference
Architecture documentation for the testHostNotEncodedForUnknown() function in SocksCmdResponseTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0510005e_dffe_7303_762c_a8947e15c991["testHostNotEncodedForUnknown()"] 759f4396_b47c_b08f_fc0d_7ab762d522b4["SocksCmdResponseTest"] 0510005e_dffe_7303_762c_a8947e15c991 -->|defined in| 759f4396_b47c_b08f_fc0d_7ab762d522b4 style 0510005e_dffe_7303_762c_a8947e15c991 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdResponseTest.java lines 121–140
@Test
public void testHostNotEncodedForUnknown() {
String asciiHost = "xn--e1aybc.xn--p1ai";
short port = 10000;
SocksCmdResponse rs = new SocksCmdResponse(SocksCmdStatus.SUCCESS, SocksAddressType.UNKNOWN, asciiHost, port);
assertEquals(asciiHost, rs.host());
ByteBuf buffer = Unpooled.buffer(16);
rs.encodeAsByteBuf(buffer);
buffer.resetReaderIndex();
assertEquals(SocksProtocolVersion.SOCKS5.byteValue(), buffer.readByte());
assertEquals(SocksCmdStatus.SUCCESS.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/SocksCmdResponseTest.java.
Where is testHostNotEncodedForUnknown() defined?
testHostNotEncodedForUnknown() is defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdResponseTest.java at line 121.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free