I am creating a single test application which is using sockets to create a connection between two devices and transfer some data (a kind of messaging app).
My question is:
Is there any way which I won't let other devices connect to a device, when it is already connected with another one. For example I have two devices A
and B
and they are connected. I don't wanna let device C
to connect to any of them.
Any ideas how can I achieve this?