static private void ReceiveDeltaFromLocalPeerThreadStart(NodePeer ToPeer, NodePeer FromPeer, NodeBase Message, NodeBase BasedOnMessage)
        {
            NodeBase BasedOnMessage_rcv = ToPeer.ReceiveDeltaFromPeer(FromPeer, BasedOnMessage.ID);

            if (BasedOnMessage_rcv != null)
            {
                ToPeer.ReceiveFromPeer(FromPeer, Message);
            }
        }
 static internal void SendToPeer(NodePeer ToPeer, NodePeer FromPeer, NodeBase Message)
 {
     if (ToPeer == null)
     {
         throw new ArgumentNullException("ToPeer");
     }
     if (FromPeer == null)
     {
         throw new ArgumentNullException("FromPeer");
     }
     if (Message != null)
     {
         if (ToPeer.IsLocal)
         {
             ToPeer.ReceiveFromPeer(FromPeer, Message);
         }
         else
         {
             ToPeer.Connection.Send(ToPeer, FromPeer, Message);
         }
     }
 }
Пример #3
0
 static private void ReceiveDeltaFromLocalPeerThreadStart(NodePeer ToPeer, NodePeer FromPeer, NodeBase Message, NodeBase BasedOnMessage)
 {
     NodeBase BasedOnMessage_rcv = ToPeer.ReceiveDeltaFromPeer(FromPeer, BasedOnMessage.ID);
     if (BasedOnMessage_rcv != null)
     {
         ToPeer.ReceiveFromPeer(FromPeer, Message);
     }
 }
Пример #4
0
 static internal void SendToPeer(NodePeer ToPeer, NodePeer FromPeer, NodeBase Message)
 {
     if (ToPeer == null)
     {
         throw new ArgumentNullException("ToPeer");
     }
     if (FromPeer == null)
     {
         throw new ArgumentNullException("FromPeer");
     }
     if (Message != null)
     {
         if (ToPeer.IsLocal)
         {
             ToPeer.ReceiveFromPeer(FromPeer, Message);
         }
         else
         {
             ToPeer.Connection.Send(ToPeer, FromPeer, Message);
         }
     }
 }