Beispiel #1
0
 public void SendMessage(String message)
 {
     if (_sock.Connected)
     {
         _sock.Send(message);
     }
 }
Beispiel #2
0
 public void SendMessage(String message)
 {
     try
     {
         if (SendSock != null && SendSock.Connected)
         {
             SendSock.Send(message);
         }
         else
         {
             SystemLogger.Log(Level.Exception, _mouldeID + " Socket is disconnected.", "Driver");
         }
     }
     catch (Exception ex)
     {
         SystemLogger.Log(Level.Exception, ex.Message, SendSock.Name + "_Driver");
     }
 }