[Mono-dev] Socket.BeginReceive never throw Exception

Stefan [At] swieser1983 at gmail.com
Fri Apr 9 11:21:53 EDT 2010

> socket.BeginReceive(receive_buffer, 0, FlockNode.buffer_size, 0, 
> new AsyncCallback(ReceiveDone), socket);

> If the Socket gets disconnected by the remote host, 
> ReceiveDone is called, and EndReceive will throw a SocketException; 
> thus you know that your socket is now disconnected without having 
> to poll it. With Mono, no exception is thrown. 

Just to be a bit more clear about this, not only no exception is thrown,
ReceiveDone isn't called either.
View this message in context: http://n4.nabble.com/Socket-BeginReceive-never-throw-Exception-tp1679973p1819481.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list