It goes like this : A server is running and a client is connected instantly. The client then gives his ID which is verified by server upon verification server gives green signal to the connection to send information.
Now in this verification i want to check if a particular client ID already has a verified connection or not.
At a single moment i want only one connection for a particular client ID I am programming with sockets (learning) but I don't understand how to tackle this problem.
I'm using c++.(ubuntu)