mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Therning <nik...@trillian.se>
Subject Re: What is the difference between session open and created?
Date Thu, 02 Mar 2006 19:40:07 GMT

When using the Socket (TCP) transport type sessionCreated() will be
called right after the new connection has been accepted on the server
socket channel but before it has been added to any selector.
sessionOpened() will be called right after the connection has been added
to the SocketIoProcessor's selector.

In the Datagram case sessionOpened() won't be called at all.

In the VMPipe case both will be called but there's really any difference
between the two.


Samuel Doyle wrote:
> Maybe this question is basic and I can assume
> something like sessionCreated is called after
> construction and sessionOpened is called after the
> underlying channel is opened? I would like to know for
> sure though.
> Thanks, S.D.
> --- Samuel Doyle <sdoyle_2@yahoo.com> wrote:
>>The documentation I have isn't too clear on this
>>except that open isn't called if you are using UDP.
>>Thanks, S.D.
>>P.S. I sent a similar email before but received an
>>error from Yahoo so not sure if it went through or

Med vänlig hälsning

Niklas Therning
Software Architect

Mobil: +46 739 75 05 73

Trillian - Software Design at its best

View raw message