Home / Function/ writeMessageIntoEmbedder() — netty Function Reference

writeMessageIntoEmbedder() — netty Function Reference

Architecture documentation for the writeMessageIntoEmbedder() function in Socks4CommonTestUtils.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b54220d2_0acd_3b38_fa70_35c7c96d7e70["writeMessageIntoEmbedder()"]
  20192ff3_0c51_733a_d66b_558f0aa2ce9a["Socks4CommonTestUtils"]
  b54220d2_0acd_3b38_fa70_35c7c96d7e70 -->|defined in| 20192ff3_0c51_733a_d66b_558f0aa2ce9a
  style b54220d2_0acd_3b38_fa70_35c7c96d7e70 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4CommonTestUtils.java lines 29–39

    public static void writeMessageIntoEmbedder(EmbeddedChannel embedder, Socks4Message msg) {
        EmbeddedChannel out;
        if (msg instanceof Socks4CommandRequest) {
            out = new EmbeddedChannel(Socks4ClientEncoder.INSTANCE);
        } else {
            out = new EmbeddedChannel(Socks4ServerEncoder.INSTANCE);
        }
        out.writeOutbound(msg);
        embedder.writeInbound(out.<ByteBuf>readOutbound());
        out.finish();
    }

Domain

Subdomains

Frequently Asked Questions

What does writeMessageIntoEmbedder() do?
writeMessageIntoEmbedder() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4CommonTestUtils.java.
Where is writeMessageIntoEmbedder() defined?
writeMessageIntoEmbedder() is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4CommonTestUtils.java at line 29.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free