SocksServerUtils Class — netty Architecture
Architecture documentation for the SocksServerUtils class in SocksServerUtils.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5c329815_af34_ca8c_9bf7_d2699f24ca4b["SocksServerUtils"] ad7eab54_d329_8cf5_60e1_627fc5ff3449["SocksServerUtils.java"] 5c329815_af34_ca8c_9bf7_d2699f24ca4b -->|defined in| ad7eab54_d329_8cf5_60e1_627fc5ff3449 9c1c90a5_5028_83c8_4a51_294001bd7254["closeOnFlush()"] 5c329815_af34_ca8c_9bf7_d2699f24ca4b -->|method| 9c1c90a5_5028_83c8_4a51_294001bd7254 55638e76_3ecc_5008_e170_d8d68ed14211["SocksServerUtils()"] 5c329815_af34_ca8c_9bf7_d2699f24ca4b -->|method| 55638e76_3ecc_5008_e170_d8d68ed14211
Relationship Graph
Source Code
example/src/main/java/io/netty/example/socksproxy/SocksServerUtils.java lines 22–34
public final class SocksServerUtils {
/**
* Closes the specified channel after all queued write requests are flushed.
*/
public static void closeOnFlush(Channel ch) {
if (ch.isActive()) {
ch.writeAndFlush(Unpooled.EMPTY_BUFFER).addListener(ChannelFutureListener.CLOSE);
}
}
private SocksServerUtils() { }
}
Source
Frequently Asked Questions
What is the SocksServerUtils class?
SocksServerUtils is a class in the netty codebase, defined in example/src/main/java/io/netty/example/socksproxy/SocksServerUtils.java.
Where is SocksServerUtils defined?
SocksServerUtils is defined in example/src/main/java/io/netty/example/socksproxy/SocksServerUtils.java at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free