incubator-awf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Stevenson (Moved) (JIRA)" <j...@apache.org>
Subject [jira] [Moved] (AWF-41) ServerSocketChannel support for AsynchronousSocket
Date Wed, 29 Feb 2012 10:10:01 GMT

     [ https://issues.apache.org/jira/browse/AWF-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tony Stevenson moved DEFT-150 to AWF-41:
----------------------------------------

    Reporter: Niklas Gustavsson
         Key: AWF-41  (was: DEFT-150)
     Project: Apache AWF  (was: Deft)
    
> ServerSocketChannel support for AsynchronousSocket
> --------------------------------------------------
>
>                 Key: AWF-41
>                 URL: https://issues.apache.org/jira/browse/AWF-41
>             Project: Apache AWF
>          Issue Type: Bug
>            Reporter: Niklas Gustavsson
>
> Following throws IllegalArgumentException:
>       ServerSocketChannel server = ServerSocketChannel.open();
>       server.configureBlocking(false);
>       server.socket().bind(new InetSocketAddress(9090));
>       AsynchronousSocket socket = new AsynchronousSocket(server);
>       // use socket
>       IOLoop.INSTANCE.start();
> Currently the AS only support SocketChannel (connect). (i.e no support for eg. ServerSocketChannel
(bind)).
> I did a quick test and added:  
>     else if (channel instanceof ServerSocketChannel) {
>        interestOps = SelectionKey.OP_ACCEPT;
>     }
> to the two parameters version of the AS ctor and that is probably a good start.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message