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