testIPV4EncodeProxyV1() — netty Function Reference
Architecture documentation for the testIPV4EncodeProxyV1() function in HaProxyMessageEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a3e4db28_ab9b_f212_c8f5_0e72cea7508e["testIPV4EncodeProxyV1()"] 4545ac9d_2f62_4ac7_c80f_5975d8175456["HaProxyMessageEncoderTest"] a3e4db28_ab9b_f212_c8f5_0e72cea7508e -->|defined in| 4545ac9d_2f62_4ac7_c80f_5975d8175456 style a3e4db28_ab9b_f212_c8f5_0e72cea7508e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HaProxyMessageEncoderTest.java lines 47–63
@Test
public void testIPV4EncodeProxyV1() {
EmbeddedChannel ch = new EmbeddedChannel(INSTANCE);
HAProxyMessage message = new HAProxyMessage(
HAProxyProtocolVersion.V1, HAProxyCommand.PROXY, HAProxyProxiedProtocol.TCP4,
"192.168.0.1", "192.168.0.11", 56324, 443);
assertTrue(ch.writeOutbound(message));
ByteBuf byteBuf = ch.readOutbound();
assertEquals("PROXY TCP4 192.168.0.1 192.168.0.11 56324 443\r\n",
byteBuf.toString(CharsetUtil.US_ASCII));
byteBuf.release();
assertFalse(ch.finish());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testIPV4EncodeProxyV1() do?
testIPV4EncodeProxyV1() is a function in the netty codebase, defined in codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HaProxyMessageEncoderTest.java.
Where is testIPV4EncodeProxyV1() defined?
testIPV4EncodeProxyV1() is defined in codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HaProxyMessageEncoderTest.java at line 47.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free