Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: IdTCPServer
| Subject: | Re: IdTCPServer |
| Posted by: | "Jamie Dale" (j.da..@turboz.net) |
| Date: | Fri, 9 Jun 2006 00:41:20 |
>> In my own server I use an array to keep track of users and threads.
> Why are you keeping thrack of them manually? TIdTCPServer already keeps
> track of the threads for you, and you can assign user-related data to each
> thread.
Yeah I realised what I wrote after I sent ;-)
I load an array of members, data etc from a ini file (which I'll upgrade to
a database etc later - ini is just easier for the time being because I can
read it). The info is loaded into an array. Basically I use a pointer in the
array for the AThread of the user when they connect.
Sorry I wasn't talking of the actual threads that the indy server
automatically deals with - I was talking of the AThreads for the actual
connections of each user.