public void SyncAllPeers(string[] peers)
        {
            Message message = new Message.Builder()
                              .Body(ACTION, ACTION_UPDATE)
                              .Body("peers", peers)
                              .Build(MasterKey);

            Server.SendAll(message.ToBytes());
        }
Example #2
0
 public void SendAll(IMessage message)
 {
     m_server.SendAll(ProtocolBuffConvert.Serialize(message));
 }