[Mono-dev] Re: [PATCH] Map SocketFlags enum to native flags

Ankit Jain radical at gmail.com
Thu Feb 2 09:00:27 EST 2006


Attached is the reworked patch.
The icalls now return error WSAEOPNOTSUPP if the socket flag is
invalid or cannot be mapped to a native one.

-Ankit

On 2/2/06, Dick Porter <dick at ximian.com> wrote:
> On Wed, 2006-02-01 at 22:03 +0530, Ankit Jain wrote:
> > But this means that a "#include <mono/metadata/socket-io.h>" is required in
> > mono/io-layer/sockets.c, as the mapping of flags is done in
> > io-layer/sockets.c (_wapi_recv etc). Am not sure whether this dependency
> > is acceptable.
>
> You need to do the conversion from managed flags to native in the
> metadata/socket-io.c file, like all the other enum mappings.
>
> - Dick
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>


--
Blog : http://ankitj.blogspot.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: peek9.patch
Type: text/x-patch
Size: 3913 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060202/175e24ca/attachment.bin 


More information about the Mono-devel-list mailing list