fail() — netty Function Reference
Architecture documentation for the fail() function in Socks4ServerDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 08d49857_8bf5_9ac9_75e1_2f034739ebb2["fail()"] f3549c11_8ef1_fde3_7585_cf97abbfa145["Socks4ServerDecoder"] 08d49857_8bf5_9ac9_75e1_2f034739ebb2 -->|defined in| f3549c11_8ef1_fde3_7585_cf97abbfa145 1df22ec8_3801_784f_704d_e3f44d44002d["decode()"] 1df22ec8_3801_784f_704d_e3f44d44002d -->|calls| 08d49857_8bf5_9ac9_75e1_2f034739ebb2 style 08d49857_8bf5_9ac9_75e1_2f034739ebb2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/main/java/io/netty/handler/codec/socksx/v4/Socks4ServerDecoder.java lines 105–120
private void fail(List<Object> out, Exception cause) {
if (!(cause instanceof DecoderException)) {
cause = new DecoderException(cause);
}
Socks4CommandRequest m = new DefaultSocks4CommandRequest(
type != null? type : Socks4CommandType.CONNECT,
dstAddr != null? dstAddr : "",
dstPort != 0? dstPort : 65535,
userId != null? userId : "");
m.setDecoderResult(DecoderResult.failure(cause));
out.add(m);
checkpoint(State.FAILURE);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does fail() do?
fail() is a function in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v4/Socks4ServerDecoder.java.
Where is fail() defined?
fail() is defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v4/Socks4ServerDecoder.java at line 105.
What calls fail()?
fail() is called by 1 function(s): decode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free