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

            tcpConnection.SendMessage(strSend);
        }