users@grizzly.java.net

Re: [Q] GrizzletContainer support for starting a Grizzlet on port 0

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Fri, 04 Jan 2008 14:55:55 +0100

Hello,

please try selectorThread.getPortLowLevel()

WBR,
Alexey.

ALT Mobile DEV wrote:
>
> It seems that if you specify port 0, then:
>
>
> Enumeration<SelectorThread> t_aSelectorEnumeration =
> SelectorThread.getSelectors() ;
>
> SelectorThread t_contextSelectorThread ;
>
>
> while (t_aSelectorEnumeration.hasMoreElements()) {
> t_contextSelectorThread = t_aSelectorEnumeration.nextElement() ;
> System.out.println (t_contextSelectorThread.getPort());
> }
>
> will report port 0 and not the OS assigned port. How do I support
> specifying port 0?
>
>
> thanks.
>
>
> --Zaid
>
> http://altmobile.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>