On Thu, 2005-12-22 at 04:40 +0100, Gonzalo Paniagua Javier wrote:
> >                     //following 2 functions cause a exception:non-block 
> > socket would block
> >                     
> > TCPSocket.SetSocketOption(SocketOptionLevel.Socket,SocketOptionName.SendTimeout,1000);
> >                     
> > TCPSocket.SetSocketOption(SocketOptionLevel.Socket,SocketOptionName.ReceiveTimeout,1000);
> 
> You have to Connect() or Accept() before setting the timeout.

I don't think that's true - the timeout will apply to the Accept () too.
Unless you mean that that's the correct way to apply the timeout in a
manner that results in working code, then you're probably correct.

- Dick


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to