private void btnPlay_Click(object sender, EventArgs e) { TcpClient tcpClient = new TcpClient(Dns.GetHostName(), 2112); <<ERROR HERE? NetworkStream ns = tcpClient.GetStream(); string objSent = "Play"; int data = Encoding.ASCII.GetByteCount(objSent); while (data != -1) { ns.WriteByte((byte)data); data = Encoding.ASCII.GetByteCount(objSent); } ns.Close(); tcpClient.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)