Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: Indy9 - how to maintain user information on a UDP server
| Subject: | Re: Indy9 - how to maintain user information on a UDP server |
| Posted by: | "York" (nospam@nospam.com) |
| Date: | Wed, 21 Mar 2007 20:57:24 |
Thanks Remy
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:460166e0$1@newsgroups.borland.com...
>
> "York" <office@onlinebg.info> wrote in message
> news:46010886@newsgroups.borland.com...
>
>> Now I need to do something similar with an UDP server.
>> The problem however is that I do not have a connection object
>> because of the connectionless nature of that protocol.
>
> You will have to keep track of your own list/array separately, and
> associate its items with the IP/Port of each client.
>
>> Could you give me a suggestion of how/where I can store some
>> info on the server so that each new datagram from one and the
>> same user could be related to it.
>
> There is nowhere to store your custom data inside the server component
> itself.
>
>> Currently (TCP implementation) I have a custom thread class
>> and I have a per-user queue.
>
> You can still implement a per-user queue. You just can't store it in
> the server component directly.
>
>
> Gambit
none