المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Client/Server TCPClient



C# Programming
05-09-2009, 01:00 PM
Hi, I developed an Client / Server application, the problem is the following:
- when a wrong IP address is inserted in the Textbox, Client application freeze.

TcpClient socketForServer;
try
{
socketForServer = new TcpClient(Ip, Port);
}
catch (Exception e1) {
info._error = e1.ToString();
return info;
}

What I can do?