Code example for ServerSocketChannel

Methods: accept

0
     
    /* ------------------------------------------------------------ */ 
    public void accept(int acceptorID)
    	throws IOException, InterruptedException 
    {    
        SocketChannel channel = _acceptChannel.accept();
        channel.configureBlocking(true);
        Socket socket=channel.socket();
        configure(socket);
 
        Connection connection=new Connection(channel);
        connection.dispatch();
    } 
     
    /* ------------------------------------------------------------------------------- */ 
    public void customize(EndPoint endpoint, Request request)
        throws IOException 
    { 
        Connection connection = (Connection)endpoint;
        if (connection._sotimeout!=_maxIdleTime)
        {