Esempio n. 1
0
 public override void ServerSend()
 {
     if (!string.IsNullOrWhiteSpace(ServerSendText) && _shareMemServer.IsOpen)
     {
         _shareMemServer.SendText(ServerSendText.Trim());
     }
 }
Esempio n. 2
0
 public override void ServerSend()
 {
     if (!string.IsNullOrWhiteSpace(ServerSendText) && _udpServer.IsRunning)
     {
         IPEndPoint ipEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9002);
         _udpServer.SendText(ipEndPoint, ServerSendText.Trim());
     }
 }
Esempio n. 3
0
 public void SendGroupMessage()
 {
     if (_useMulticast && _udpServer.IsRunning)
     {
         byte[] messageData = _udpServer.TextEncoding.GetBytes(ServerSendText.Trim());
         _udpServer.SendGroupMessage(messageData, 9002);
     }
 }
Esempio n. 4
0
 public override void ServerSend()
 {
     if (_pipeServer.Status == ClientStatus.Connected && !string.IsNullOrWhiteSpace(ServerSendText))
     {
         byte[] messageData = _pipeServer.TextEncoding.GetBytes(ServerSendText.Trim());
         _pipeServer.SendMessage(messageData);
     }
 }
 public override void ServerSend()
 {
     if (_serverClientID > 0)
     {
         if (!string.IsNullOrWhiteSpace(ServerSendText))
         {
             _tcpServer.SendText(_serverClientID, ServerSendText.Trim());
         }
     }
 }
        public override void ServerSend()
        {
            if (_serverClientID > 0)
            {
                if (!string.IsNullOrWhiteSpace(ServerSendText))
                {
                    //_tcpServer.SendText(_serverClientID, ServerSendText.Trim());
                    ServerMessage serverMessage = new ServerMessage()
                    {
                        Title = "test",
                        Body  = ServerSendText.Trim()
                    };

                    _tcpServer.SendModelMessage(_serverClientID, serverMessage);
                }
            }
        }