Beispiel #1
0
        public void HandlePeerConnected(CoordinatorService service, ExtensionListReceived data)
        {
            if (data.Extensions.Contains(Name) == false)
            {
                return;
            }

            service.ForEachPeer((peer, remote, direction) =>
            {
                if (peer.Equals(data.Peer))
                {
                    return;
                }

                if (direction == NetworkDirection.Incoming)
                {
                    return;
                }

                service.SendPeers(data.Peer, remote);
            });
        }