dev@grizzly.java.net

Re: port range functionality

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 01 Sep 2009 11:07:28 -0400

Salut,

Tigran Mkrtchyan wrote:
> Hi Jeanfrancois,
>
> I have made some change for grizzly-nio-framework-1.9.17
> to support port ranges. The code is backward compatible.
> I have checked it with TCP and it works for me :).
>
> To use it:
>
> ...
> final TCPSelectorHandler tcp_handler = new TCPSelectorHandler();
> tcp_handler.setPortRange(new PortRange(2000, 3000));
> ...
>

The patch looks great. Today we will cut 1.9.18 (for GlassFish v3 final
release). I've filled issue:

   * https://grizzly.dev.java.net/issues/show_bug.cgi?id=725

And attached your patch to it, and I will commit it as soon as 1.9.18
gets released.

Thanks!

-- Jeanfrancois

>
> Patch is attached.
> Regards,
> Tigran.
>
> On 07/15/2009 04:42 PM, Jeanfrancois Arcand wrote:
>> Salut,
>>
>> Mkrtchyan, Tigran wrote:
>>> Hi Jeanfrancois,
>>>
>>> Finally we got Grizzly to work with out staff.
>>> I have written an ONC-RPC protocol filter (will submit to grizzly
>>> users list as soon as it a shape that other can use it as well) and
>>> implemented a NFSv4.1 server based on it.
>>
>> This is great!
>>
>> For
>>> final step I miss a small functionality: binding
>>> to a port range. We have implemented it for
>>> our internal socket handling. Unfortunately, grizzly-nio
>>> do not have something like that I have looked to
>>> TCPSelectorHandler.java, but no way to get expected
>>> functionality by extending it.
>>>
>>> To make long story short. We have our implementation
>>> and we absolutely happy if you will integrate it or
>>> modification of if into Grizzly-nio.
>>
>