Julien Vermillard wrote:
Le mercredi 19 juillet 2006 à 13:20 -0400, Joao a écrit :
I have a datagram server which receives information from many
sources.
I want to keep a session open for every end point the server
receive a message from.
How can I keep a session for every new connector point I receive
a message from?
Thanks,
Joao,
UDP is a connection less protocol, I'll probably sound annoying but
perhaps you should use TCP ?
I know what you mean. Unfortunately, I have already 3.000 clients
from different vendors
communicating with a C version of the program. All of them using UDP.
I know it is hard,
but I need to have a kinda session per terminal. Actually, I already
have a kludge that works.
I was just wandering if I could use the Acceptor newSession method
for this.
I quickly read the code, unfortunately I could not figure out how to
use it, once I will create
the session later after receiving the first message from that
terminal. Just at that time I will have enough information
to create it(for example the remote address).
In case anyone has a clue on how to use it, I will appreciate.
Thanks anyway,
Joao,
Julien