Beispiel #1
0
 /// <summary>
 /// Sends a bitmessage
 /// </summary>
 /// <param name="API">Bitmessage API</param>
 /// <param name="From">Sender</param>
 /// <param name="To">Receiver (broadcast allowed)</param>
 /// <param name="Subject">Message Subject</param>
 /// <param name="Message">Message Body</param>
 public static void Send(BitAPI API, string From, string To, string Subject, string Message)
 {
     if (To == BROADCAST)
     {
         API.sendBroadcast(From, B64enc(Subject), B64enc(Message));
     }
     else
     {
         API.sendMessage(To, From, B64enc(Subject), B64enc(Message));
     }
 }
 /// <summary>
 /// Sends a bitmessage
 /// </summary>
 /// <param name="API">Bitmessage API</param>
 /// <param name="From">Sender</param>
 /// <param name="To">Receiver (broadcast allowed)</param>
 /// <param name="Subject">Message Subject</param>
 /// <param name="Message">Message Body</param>
 public static void Send(BitAPI API, string From,string To,string Subject,string Message)
 {
     if (To == BROADCAST)
     {
         API.sendBroadcast(From, B64enc(Subject), B64enc(Message));
     }
     else
     {
         API.sendMessage(To, From, B64enc(Subject), B64enc(Message));
     }
 }
 public void Broadcast(GenericMessage MSG)
 {
     BA.sendBroadcast(Addr, JsonConverter.B64enc(MSG.Command), JsonConverter.B64enc(MSG.RawContent));
     GenericServerLog(this, GenericLogType.Info, false, string.Format("Sending Broadcast from {0}", Addr));
 }