Home / Function/ encodeCommandRequest() — netty Function Reference

encodeCommandRequest() — netty Function Reference

Architecture documentation for the encodeCommandRequest() function in Socks5ClientEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  cc71ef6b_55b2_f57d_0a92_7f59249ed52b["encodeCommandRequest()"]
  38438508_6164_1fbb_2974_832cc944b4c7["Socks5ClientEncoder"]
  cc71ef6b_55b2_f57d_0a92_7f59249ed52b -->|defined in| 38438508_6164_1fbb_2974_832cc944b4c7
  7cc5b5cc_17e1_f6ca_091c_89fabe99b164["encode()"]
  7cc5b5cc_17e1_f6ca_091c_89fabe99b164 -->|calls| cc71ef6b_55b2_f57d_0a92_7f59249ed52b
  style cc71ef6b_55b2_f57d_0a92_7f59249ed52b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5ClientEncoder.java lines 115–124

    private void encodeCommandRequest(Socks5CommandRequest msg, ByteBuf out) throws Exception {
        out.writeByte(msg.version().byteValue());
        out.writeByte(msg.type().byteValue());
        out.writeByte(0x00);

        final Socks5AddressType dstAddrType = msg.dstAddrType();
        out.writeByte(dstAddrType.byteValue());
        addressEncoder.encodeAddress(dstAddrType, msg.dstAddr(), out);
        ByteBufUtil.writeShortBE(out, msg.dstPort());
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does encodeCommandRequest() do?
encodeCommandRequest() is a function in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5ClientEncoder.java.
Where is encodeCommandRequest() defined?
encodeCommandRequest() is defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5ClientEncoder.java at line 115.
What calls encodeCommandRequest()?
encodeCommandRequest() is called by 1 function(s): encode.

Analyze Your Own Codebase

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

Try Supermodel Free