users@grizzly.java.net

Fwd: how to reject connections from client

From: Survivant 00 <survivant00_at_gmail.com>
Date: Mon, 19 Jan 2009 13:05:12 -0500

someone can help Vijay for this one ?

---------- Forwarded message ----------
From: vijay phaneendra <vijayphan_at_gmail.com>
Date: 2009/1/19
Subject: Re: how to reject connections from client
To: Survivant 00 <survivant00_at_gmail.com>


Hi

I am able to get the client connection reference in the filter. The filter
will be called after the message is formed by the protocol parser. I need to
get a handle when the server does an ACCEPT from the client and before any
bytes are read from the client.

Any help is appreciated.

Regards
Vijay



On Mon, Jan 19, 2009 at 9:29 AM, vijay phaneendra <vijayphan_at_gmail.com>wrote:

> Thanks a million.......
>
> -Vijay
>
>
> On Fri, Jan 16, 2009 at 7:15 PM, Survivant 00 <survivant00_at_gmail.com>wrote:
>
>> here the source code
>>
>> my personal server is : http://sebastiendionne.ca
>>
>> you should be forwared to
>>
>> http://www2.sebastiendionne.ca:8282/
>>
>> my current ip is : 70.81.176.89
>>
>> 2009/1/16 Survivant 00 <survivant00_at_gmail.com>
>>
>>> oups, I think my IP changed today maybe the DNSs are not all updated..
>>> I'll send you the source code by email
>>>
>>>
>>> 2009/1/16 vijayphan <vijayphan_at_gmail.com>
>>>
>>>>
>>>> Hi
>>>>
>>>> Thanks for the response.
>>>>
>>>> But am not able to download the code. Seems like the server is down.
>>>>
>>>> Thanks
>>>> VP
>>>>
>>>>
>>>> Survivant 00 wrote:
>>>> >
>>>> > you can check this link :
>>>> >
>>>> http://weblogs.java.net/blog/survivant/archive/2008/12/grizzly_create.html
>>>> >
>>>> > you can have a connection listener and you can keep the client
>>>> reference
>>>> > into cache... check the code .. there is a ClientConnectionHandler
>>>> and
>>>> > check the class :EchoQueryManagerFilter
>>>> >
>>>> > where is retreive this reference.
>>>> >
>>>> > hope that can help you to start..
>>>> >
>>>> > 2009/1/16 vijayphan <vijayphan_at_gmail.com>
>>>> >
>>>> >>
>>>> >> hi
>>>> >>
>>>> >> I am new to grizzly. I have implemented a java socket based server
>>>> using
>>>> >> grizzly framework.
>>>> >>
>>>> >> I have two questions.
>>>> >>
>>>> >> 1) I have to validate the ip address of the client before accepting
>>>> the
>>>> >> connection. If the client ip address is not in my list I want to
>>>> reject
>>>> >> the
>>>> >> connection.
>>>> >>
>>>> >> 2) On accepting the connection, I want to get the channel associated
>>>> with
>>>> >> the connection and store it so that i can send any notifications to
>>>> the
>>>> >> client. This is not a request based response.
>>>> >>
>>>> >> I searched the forum. I could not get a solution.
>>>> >>
>>>> >> Can someone please help me.
>>>> >>
>>>> >> Thanks
>>>> >> VP
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> View this message in context:
>>>> >>
>>>> http://www.nabble.com/how-to-reject-connections-from-client-tp21509812p21509812.html
>>>> >> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>>>> >>
>>>> >>
>>>> >> ---------------------------------------------------------------------
>>>> >> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>>> >> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>> >>
>>>> >>
>>>> >
>>>> >
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/how-to-reject-connections-from-client-tp21509812p21510292.html
>>>> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>>
>>>>
>>>
>>
>