[Beepcore-java-users] The Session object
Status: Beta
Brought to you by:
huston
From: De K. SJ <136...@su...> - 2002-12-12 09:03:36
|
Hi, =20 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? =20 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. =20 Is there a reason for creating a new object and not just modifying the = old one? =20 Thanks, Sean de Kock |