I need help in finding an efficient way of storing the following data. I just want to store all the information in one data structure. The data that will be obtained contains the following info:
The data contains server names.
Each server name will have a socket that it needs to write to.
Each server name can have any number of clients. (2 or 4 or more depending on the data obtained from database)
Each client can have any number of sub clients.
so members are as follows:
serverName char[50];
socket int
client_name char[50];
sub_client char[50];
Thanks
The data contains server names.
Each server name will have a socket that it needs to write to.
Each server name can have any number of clients. (2 or 4 or more depending on the data obtained from database)
Each client can have any number of sub clients.
so members are as follows:
serverName char[50];
socket int
client_name char[50];
sub_client char[50];
Thanks