IPEndPoint EPhost = new IPEndPoint(hostadd, port); s.Connect(EPhost); Byte[] receive = new Byte[1024]; s.ReceiveTimeout = 2000; while (true) { try { Console.WriteLine("RECEIVING"); s.ReceiveTimeout = 2000; s.Receive(receive); } catch (SocketException sex) { //I HAVE NO IDEIA WHAT I SHOULD DO HERE. } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)