Method Signaler::onPeerConnected, receives event when new peer is added. How can we avoid peer add event if peer is not which was requested by _client.connect();.
For example: there is one server S and two client C1 and C2.
When C1 make connection with S. It receive event of connection with S and C2 in Signaler::onPeerConnected method. My question is, how to filter out C2 connection event in Signaler::onPeerConnected?
Method
Signaler::onPeerConnected
, receives event when new peer is added. How can we avoid peer add event if peer is not which was requested by_client.connect();
. For example: there is one server S and two client C1 and C2. When C1 make connection with S. It receive event of connection with S and C2 inSignaler::onPeerConnected
method. My question is, how to filter out C2 connection event inSignaler::onPeerConnected
?