dev@grizzly.java.net

Re: port range functionality

From: Tigran Mkrtchyan <tigran.mkrtchyan_at_desy.de>
Date: Tue, 01 Sep 2009 15:17:24 +0200

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));
...


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.
>