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
>