I am needing an advice on how to implement a data structure for my project
Here's the deal,
I have two apps, Server and Client.
I need the users on the clients to give an username and a password, that information will be sent to the server and if there is no one with that username, the server will accept the user, no database needed since the system is public (Users of a lab) and the time and opeations are short.
So, I need to manage the active users in the server. The information of each is sent in two parts, first: Username and Password. Second: Type of MicroController to use (Integer value) and an Array. all of that reside in a record as follows
TMicroC = (AT51,AT52,PICF84);
TUserRec = Record
Case MicroC:TMicroC of
AT51 : (progmem51:TPMem51); //51
AT52 : (progmem52:TPMem52); //52
PICF84 : (progmemPic:TPMemPic); //PIC
Now, I know that there are A LOT of new stuff in delphi that I don't know, and different ways of doing things that's why I'm asking for help.
What I think is better for this is to have somehow, a list of unique identifiers (usernames more likely) pointing to each dinamically created record, as new clients connect, and have records deleted (disposed?) when clients disconnect.
I don't know how to implement this or even if it's the best approach so I am open to comments.
Thanks in advance.
Q is urgent too.