Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="binaryData"></param>
 public void Send(ByteArray binaryData)
 {
     if (initSuccess)
     {
         try
         {
             udpSocket.Write(binaryData.Bytes);
         }
         catch (Exception exception)
         {
             log.Warn("WriteUDP operation failed due to Error: " + exception.Message + " " + exception.StackTrace);
         }
     }
     else
     {
         log.Warn("UDP protocol is not initialized yet. Pleas use the initUDP() method.");
     }
 }
Beispiel #2
0
 public void Send(ByteArray binaryData)
 {
     if (initSuccess)
     {
         try
         {
             udpSocket.Write(binaryData.Bytes);
             if (sfs.Debug)
             {
                 log.Info("UDP Data written: " + DefaultObjectDumpFormatter.HexDump(binaryData));
             }
         }
         catch (Exception ex)
         {
             log.Warn("WriteUDP operation failed due to error: " + ex.Message + " " + ex.StackTrace);
         }
     }
     else
     {
         log.Warn("UDP protocol is not initialized yet. Please use the initUDP() method.");
     }
 }