TcpListener listener = new TcpListener(IPAddress.Any, 33333); listener.Start();
TcpClient client = listener.AcceptTcpClient();
NetworkStream stream = client.GetStream(); w = new BinaryWriter(stream); r = new BinaryReader(stream);
w.Write(MESSAGE);//for writing msg=r.ReadString();//for reading something that client sends
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)