Пример #1
0
 public static void SendMessage(this TcpServerNetwork tcp, string message)
 {
     byte[] messageBytes = Encoding.ASCII.GetBytes(message);
     tcp.SendData(messageBytes);
 }
Пример #2
0
        internal static void Send(IMichaelProtocol michaelProtocol, TcpServerNetwork tcpConnection)
        {
            string strSend = ConvertProtocol.MichaelProtocolToString(michaelProtocol);

            tcpConnection.SendMessage(strSend);
        }