[Mono-dev] [PATCH] Missing Socket.Send and Socket.Receive methods

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon Apr 10 18:52:59 EDT 2006

On Mon, 2006-04-10 at 13:17 +0300, Tomi Valkeinen wrote:
> Hi,
> Included is a patch that implements the missing Socket.Send and 
> Socket.Receive methods that take SocketError as an out parameter. These 
> methods do not throw an exception when an error occurs (such as 
> WouldBlock) and so are quite essential for non-blocking socket IO. I also 
> changed the SocketError enum to be internal in .Net 1.x version of the 
> class lib, so that it can be used in socket code instead of those horrible 
> if (error != 10035) checks.

Your patch is in svn HEAD now.

> I've also made a similar Socket.Connect method, but that's not included as 
> Microsoft's .Net framework does not have such a method. What is the policy 
> on non-standard methods?

We have to keep the System assembly compatible with MS's, so having
extra public methods/fields/blah is not an option.


More information about the Mono-devel-list mailing list