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

            tcpConnection.SendMessage(strSend);
        }