setRawOpt() — netty Function Reference
Architecture documentation for the setRawOpt() function in Socket.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 84cc6853_2510_2032_7f37_0563642d9c0d["setRawOpt()"] c1db2c0c_ff79_5334_3102_02a56efa545c["Socket"] 84cc6853_2510_2032_7f37_0563642d9c0d -->|defined in| c1db2c0c_ff79_5334_3102_02a56efa545c 78858379_284c_9560_9aa9_ecad7d0bc564["setRawOptAddress()"] 84cc6853_2510_2032_7f37_0563642d9c0d -->|calls| 78858379_284c_9560_9aa9_ecad7d0bc564 aa54d9b1_b8ab_a9f4_1cb1_bd8df320fb88["setRawOptArray()"] 84cc6853_2510_2032_7f37_0563642d9c0d -->|calls| aa54d9b1_b8ab_a9f4_1cb1_bd8df320fb88 style 84cc6853_2510_2032_7f37_0563642d9c0d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-unix-common/src/main/java/io/netty/channel/unix/Socket.java lines 516–530
public void setRawOpt(int level, int optname, ByteBuffer optvalue) throws IOException {
int limit = optvalue.limit();
if (optvalue.isDirect()) {
setRawOptAddress(fd, level, optname,
Buffer.memoryAddress(optvalue) + optvalue.position(), optvalue.remaining());
} else if (optvalue.hasArray()) {
setRawOptArray(fd, level, optname,
optvalue.array(), optvalue.arrayOffset() + optvalue.position(), optvalue.remaining());
} else {
byte[] bytes = new byte[optvalue.remaining()];
optvalue.duplicate().get(bytes);
setRawOptArray(fd, level, optname, bytes, 0, bytes.length);
}
optvalue.position(limit);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setRawOpt() do?
setRawOpt() is a function in the netty codebase, defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/Socket.java.
Where is setRawOpt() defined?
setRawOpt() is defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/Socket.java at line 516.
What does setRawOpt() call?
setRawOpt() calls 2 function(s): setRawOptAddress, setRawOptArray.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free