[Mono-list] code stuff

Miguel de Icaza miguel@ximian.com
20 Jul 2001 12:36:31 -0400


> also, miguel, if you want, i can send you some more skeleton classes for the 
> System.Net.Sockets namespace. its mostly enums, but there's some real classes 
> there. just none with alot of functionality.

I would love to get those!

> which brings me to my question: how would i call out to the system sockets 
> interface from within a socket class? or for that matter bind, listen and 
> connect?

You have to use PInvoke, something like:

[DllImport("libc")]
int socket (int domain, int type, int protocol);