Code example for FileDescriptor

0
    // for native call 
    @SuppressWarnings("unused") 
    private ServerSocketChannelImpl() throws IOException { 
        super(SelectorProvider.provider());
        status = SERVER_STATUS_OPEN;
        fd = new FileDescriptor();
        impl = new PlainServerSocketImpl(fd);
        socket = new ServerSocketAdapter(impl, this);
        isBound = false;
    } 
 
    /* 
     * Getting the internal Socket If we have not the socket, we create a new 
     * one. 
     */ 
    public ServerSocket socket() {
        return socket;
    } 
 
    /* 
     *