SocksInitResponse Class — netty Architecture
Architecture documentation for the SocksInitResponse class in SocksInitResponse.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b0906e74_36b4_c6b3_389a_bd62dca0d98a["SocksInitResponse"] 6743bf54_2605_ddc0_3803_0065da471a90["SocksInitResponse.java"] b0906e74_36b4_c6b3_389a_bd62dca0d98a -->|defined in| 6743bf54_2605_ddc0_3803_0065da471a90 5167c76a_8604_92f0_94dc_c4ceb43d0cd2["SocksInitResponse()"] b0906e74_36b4_c6b3_389a_bd62dca0d98a -->|method| 5167c76a_8604_92f0_94dc_c4ceb43d0cd2 6fea1e17_b40e_6d67_54b3_26323b09dc0d["SocksAuthScheme()"] b0906e74_36b4_c6b3_389a_bd62dca0d98a -->|method| 6fea1e17_b40e_6d67_54b3_26323b09dc0d 407c5420_3f57_3029_2c84_647215a94473["encodeAsByteBuf()"] b0906e74_36b4_c6b3_389a_bd62dca0d98a -->|method| 407c5420_3f57_3029_2c84_647215a94473
Relationship Graph
Source Code
codec-socks/src/main/java/io/netty/handler/codec/socks/SocksInitResponse.java lines 27–49
public final class SocksInitResponse extends SocksResponse {
private final SocksAuthScheme authScheme;
public SocksInitResponse(SocksAuthScheme authScheme) {
super(SocksResponseType.INIT);
this.authScheme = ObjectUtil.checkNotNull(authScheme, "authScheme");
}
/**
* Returns the {@link SocksAuthScheme} of this {@link SocksInitResponse}
*
* @return The {@link SocksAuthScheme} of this {@link SocksInitResponse}
*/
public SocksAuthScheme authScheme() {
return authScheme;
}
@Override
public void encodeAsByteBuf(ByteBuf byteBuf) {
byteBuf.writeByte(protocolVersion().byteValue());
byteBuf.writeByte(authScheme.byteValue());
}
}
Source
Frequently Asked Questions
What is the SocksInitResponse class?
SocksInitResponse is a class in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socks/SocksInitResponse.java.
Where is SocksInitResponse defined?
SocksInitResponse is defined in codec-socks/src/main/java/io/netty/handler/codec/socks/SocksInitResponse.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free