encodeAuthMethodRequest() — netty Function Reference
Architecture documentation for the encodeAuthMethodRequest() function in Socks5ClientEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8f9720bd_8235_eaf6_7b80_f05f0cb5a76f["encodeAuthMethodRequest()"] 38438508_6164_1fbb_2974_832cc944b4c7["Socks5ClientEncoder"] 8f9720bd_8235_eaf6_7b80_f05f0cb5a76f -->|defined in| 38438508_6164_1fbb_2974_832cc944b4c7 7cc5b5cc_17e1_f6ca_091c_89fabe99b164["encode()"] 7cc5b5cc_17e1_f6ca_091c_89fabe99b164 -->|calls| 8f9720bd_8235_eaf6_7b80_f05f0cb5a76f style 8f9720bd_8235_eaf6_7b80_f05f0cb5a76f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5ClientEncoder.java lines 78–94
private static void encodeAuthMethodRequest(Socks5InitialRequest msg, ByteBuf out) {
out.writeByte(msg.version().byteValue());
final List<Socks5AuthMethod> authMethods = msg.authMethods();
final int numAuthMethods = authMethods.size();
out.writeByte(numAuthMethods);
if (authMethods instanceof RandomAccess) {
for (int i = 0; i < numAuthMethods; i ++) {
out.writeByte(authMethods.get(i).byteValue());
}
} else {
for (Socks5AuthMethod a: authMethods) {
out.writeByte(a.byteValue());
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does encodeAuthMethodRequest() do?
encodeAuthMethodRequest() is a function in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5ClientEncoder.java.
Where is encodeAuthMethodRequest() defined?
encodeAuthMethodRequest() is defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5ClientEncoder.java at line 78.
What calls encodeAuthMethodRequest()?
encodeAuthMethodRequest() 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