[Mono-dev] After calling Connect method System.Net.Sockets.TcpClient looses settings

Arnhoffer Károly karnhoffer at ecron.hu
Thu Feb 23 05:02:29 EST 2006


Hi,

I do the following:

System.Net.Sockets.TcpClient client = new System.Net.Sockets.TcpClient();
client.ReceiveTimeout = 3000;
Console.WriteLine(client.ReceiveTimeout.ToString());
client.Connect("192.168.1.5", 80);
Console.WriteLine(client.ReceiveTimeout.ToString());

And the response wit Mono is:

3000
0

With .Net it is:

3000
3000

Is this mode of connecting correct? When I set the value after calling Connect it is OK.

Thanks

Károly



More information about the Mono-devel-list mailing list