SctpTestUtil Class — netty Architecture
Architecture documentation for the SctpTestUtil class in SctpTestUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7c993637_91e8_cb7b_8ec1_d71121a8e7c1["SctpTestUtil"] e01fa535_0b28_cd0b_9821_d337c1550562["SctpTestUtil.java"] 7c993637_91e8_cb7b_8ec1_d71121a8e7c1 -->|defined in| e01fa535_0b28_cd0b_9821_d337c1550562 474c08b4_e474_8564_891a_4e465c2841d8["isSctpSupported()"] 7c993637_91e8_cb7b_8ec1_d71121a8e7c1 -->|method| 474c08b4_e474_8564_891a_4e465c2841d8 07f1b466_b861_5482_551a_ff3a97334405["SctpTestUtil()"] 7c993637_91e8_cb7b_8ec1_d71121a8e7c1 -->|method| 07f1b466_b861_5482_551a_ff3a97334405
Relationship Graph
Source Code
transport-sctp/src/test/java/io/netty/channel/sctp/SctpTestUtil.java lines 24–55
@SuppressForbidden(reason = "test-only")
final class SctpTestUtil {
private static final boolean SCTP_SUPPORTED;
static {
boolean supported = true;
Channel channel = null;
try {
channel = SctpChannel.open();
} catch (UnsupportedOperationException e) {
supported = false;
} catch (IOException e) {
// ignore
} finally {
if (channel != null) {
try {
channel.close();
} catch (IOException ignore) {
// ignore
}
}
}
SCTP_SUPPORTED = supported;
}
public static boolean isSctpSupported() {
return SCTP_SUPPORTED;
}
private SctpTestUtil() { }
}
Source
Frequently Asked Questions
What is the SctpTestUtil class?
SctpTestUtil is a class in the netty codebase, defined in transport-sctp/src/test/java/io/netty/channel/sctp/SctpTestUtil.java.
Where is SctpTestUtil defined?
SctpTestUtil is defined in transport-sctp/src/test/java/io/netty/channel/sctp/SctpTestUtil.java at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free