encodeCommandResponse() — netty Function Reference
Architecture documentation for the encodeCommandResponse() function in Socks5ServerEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 37a3e5d0_c2c0_6dc4_b582_562f19a2f1b2["encodeCommandResponse()"] 1cdfa3cc_d2e9_1ff0_108d_c82ab4a96f74["Socks5ServerEncoder"] 37a3e5d0_c2c0_6dc4_b582_562f19a2f1b2 -->|defined in| 1cdfa3cc_d2e9_1ff0_108d_c82ab4a96f74 33d88147_b1e4_e0c2_2929_cc0fe97a48dc["encode()"] 33d88147_b1e4_e0c2_2929_cc0fe97a48dc -->|calls| 37a3e5d0_c2c0_6dc4_b582_562f19a2f1b2 style 37a3e5d0_c2c0_6dc4_b582_562f19a2f1b2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5ServerEncoder.java lines 90–100
private void encodeCommandResponse(Socks5CommandResponse msg, ByteBuf out) throws Exception {
out.writeByte(msg.version().byteValue());
out.writeByte(msg.status().byteValue());
out.writeByte(0x00);
final Socks5AddressType bndAddrType = msg.bndAddrType();
out.writeByte(bndAddrType.byteValue());
addressEncoder.encodeAddress(bndAddrType, msg.bndAddr(), out);
ByteBufUtil.writeShortBE(out, msg.bndPort());
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does encodeCommandResponse() do?
encodeCommandResponse() is a function in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5ServerEncoder.java.
Where is encodeCommandResponse() defined?
encodeCommandResponse() is defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5ServerEncoder.java at line 90.
What calls encodeCommandResponse()?
encodeCommandResponse() 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