[Mono-list] handling io to a descriptor in *nix

David Anes david.anes at gmail.com
Sun Mar 25 07:55:02 EDT 2007


Hi Michael,

Why not use System.Net.Sockets namespace? I think this is what you are
searching for.

Regards,
David Anes.

2007/3/25, Michael J. Ryan <tracker1_lists at theroughnecks.com>:
>
> Is there a standard library, in linux, and/or OSX to handle the
> following..
>
> Two external methods... 1, send a byte array via a socket descriptor.. 2,
> receive a single byte via a descriptor?  I wrote a small stub in C to
> handle
> this, but wasn't sure if it would be better to have a compile setting in
> the
> C# project itself to address to winsock on windows, and ??? on
> linux...  That
> way another dll/so doesn't need to be compiled in the native platform for
> this
> tiny piece.

I'm not really very good with the P/Invoke stuff, or even sure how to make
> such a decision, or do it at runtime...  Any help would be appreciated.

--
> Michael J. Ryan - tracker1(at)theroughnecks(dot)com -
> www.theroughnecks.net
> icq: 4935386  -  AIM/AOL: azTracker1  -  Y!: azTracker1  -  MSN/Win:
> (email)
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070325/053c90cf/attachment.html 


More information about the Mono-list mailing list