mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Germán Borbolla Flores <gborbo...@insys-corp.com.mx>
Subject Re: Difference between sessionOpened and sessionCreated
Date Thu, 26 Jul 2007 16:58:16 GMT
Thanks, I will try filterin on sessionCreated. I'll post my result.

Maarten Bosteels wrote:
> see also http://issues.apache.org/jira/browse/DIRMINA-108
>
> On 7/26/07, Maarten Bosteels <mbosteels.dns@gmail.com> wrote:
>   
>> see javadoc:
>>
>>     
> http://mina.apache.org/report/1.1/apidocs/org/apache/mina/common/IoHandl
> er.html#sessionCreated(org.apache.mina.common.IoSession)
>   
>>     
> <http://mina.apache.org/report/1.1/apidocs/org/apache/mina/common/IoHand
> ler.html#sessionCreated%28org.apache.mina.common.IoSession%29>
>   
>> sessionCreated:
>> Invoked when the session is created. Initialize default socket
>>     
> parameters
>   
>> and user-defined attributes here.
>>
>> sessionOpened:
>> Invoked when the connection is opened. This method is not invoked if
>>     
> the
>   
>> transport type is UDP.
>>
>> Maarten
>>
>> On 7/26/07, Germán Borbolla Flores <gborbolla@insys-corp.com.mx >
>>     
> wrote:
>   
>>> Hi,
>>>
>>> As part of a server I'm working on I need to filter incoming
>>>       
> connection
>   
>>> based in a number of criteria.
>>>
>>> I don't know where to put it, in IoFilter.sessionCreated or in
>>> IoFilter.sessionOpened, I've checked BlacklistFilter and the
>>>       
> connection
>   
>>> is validated in both methods, do I have to this?
>>>
>>> For future reference, which method is first called?
>>>
>>> Thanks,
>>>
>>> Germán
>>>
>>>       
>>     

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message