Home / Function/ privilegedBind() — netty Function Reference

privilegedBind() — netty Function Reference

Architecture documentation for the privilegedBind() function in NioUdtMessageConnectorChannel.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  52be0cc4_f241_7b71_a43a_5b3d187658ac["privilegedBind()"]
  06bc0141_1480_880a_48f9_8a253c01da1f["NioUdtMessageConnectorChannel"]
  52be0cc4_f241_7b71_a43a_5b3d187658ac -->|defined in| 06bc0141_1480_880a_48f9_8a253c01da1f
  20041cfd_c0eb_d2d0_c550_a15eccef2815["doBind()"]
  20041cfd_c0eb_d2d0_c550_a15eccef2815 -->|calls| 52be0cc4_f241_7b71_a43a_5b3d187658ac
  style 52be0cc4_f241_7b71_a43a_5b3d187658ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtMessageConnectorChannel.java lines 238–251

    private static void privilegedBind(final SocketChannelUDT socketChannel, final SocketAddress localAddress)
            throws IOException {
        try {
            AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
                @Override
                public Void run() throws IOException {
                    socketChannel.bind(localAddress);
                    return null;
                }
            });
        } catch (PrivilegedActionException e) {
            throw (IOException) e.getCause();
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does privilegedBind() do?
privilegedBind() is a function in the netty codebase, defined in transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtMessageConnectorChannel.java.
Where is privilegedBind() defined?
privilegedBind() is defined in transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtMessageConnectorChannel.java at line 238.
What calls privilegedBind()?
privilegedBind() is called by 1 function(s): doBind.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free