Exemple #1
0
 private void onNetworkData(string data)
 {
     foreach (byte[] address in userAddresses)
     {
         Friend f = FriendList.getFriend(address);
         if (f != null)
         {
             // TODO TODO TODO probably a different encoding should be used for data
             StreamProcessor.sendAppData(f, sessionId, UTF8Encoding.UTF8.GetBytes(data));
         }
         else
         {
             Logging.error("Friend {0} does not exist in the friend list.", Base58Check.Base58CheckEncoding.EncodePlain(address));
         }
     }
 }