The Session object

"De Kock SJ <[email protected]>" <[email protected]> Thu, 12 Dec 2002 11:03:17 +0200
Newsgroups gmane.network.beep.beepcore.java.general
Message-ID <[email protected]>
Hi,
 
I have been looking into the way that the session object acts on the peer that is recieving a message. I have noticed that when using tuning everytime a message has been recieved a new session (TCPSession) object is created. This is done by calling the reset method. This is a pain if you want to operate as peer-to-peer. Everytime a message is recieved then you lose the session object, and with it the control of the session. As yet I have not found any where to get the latest session object. Am I missing something, is there maybe a different way to control the session when using tuning?
 
My situation:
I start a beep session, the listener starts TLS (JSSE) and the sends data the initiator (did not start TLS) gets the session from a message recieved, and can send data. When the data is recieved on the listener's side a new session object is created and the old one is useless.
 
Is there a reason for creating a new object and not just modifying the old one?
 
Thanks,
Sean de Kock


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/