Is it possible to check the IP of the remote host on the server/acceptor side before accepting the connection?
The reason behind it: I have n clients regularly trying to connect to a server, and I do not want to constantly have n open connections. Instead I would like to be able to choose which clients I want to connect with and only accept these connections when I need them.
Unfortunately, the connect needs to be initiated from the client, so in a reverse kind of way, due to firewall and policies.
Is this even possible from a TCP perspective and how can this be done in asio?