I have a server program I want to add a simple feature to it. It's written in C.
It is like a chat server. People can enter the chat, but I want to make it so that the server allows them to enter or not before they are able to send any text.
There are two types of chatters:
Panelists, who also require approval from the server before entering, but are allowed to chat once they enter.
Audience, who can enter, but can only listen until they are allowed to chat by the server.
I wish I could post the code here, but it is a bit longer than the maximum allows characters here in the post.
I know the addition is a simple few lines, but I am unable to know where to add these lines.
I tried to post the code, but it was a bit too long and it did not work.
I do not need the data to be stored. Let's say I have someone online managing the server and he/she allows people to enter or does not. There is no database or files to store the data required.
If I could post all the code, you will know what I am talking about.