[Mono-list] Writing daemons in C#

Adam Keys akeys@post.cis.smu.edu
19 Nov 2002 21:34:03 -0600


On Tue, 2002-11-19 at 19:31, Miguel de Icaza wrote:
> There are various sites online with the POSIX APIs.

Googling revealed a few fairly uninformative sites.  However, an
effort[1] to implement POSIX APIs in Java did show up.  However, they
did not have code, just a (useful to me) list of functions in the POSIX
standard.
 
> It should be easily doable for a new programmer, but you must be ready
> to rewrite a few chunks based on the input that you will very likely
> receive ;-)

I'm presuming DllImport and P/Invoke aren't the preferred methods here? 
I looked at System.Net.Socket, since that would appear to be a task
similar to implementing POSIX APIs.  It uses InternalCall, which I'm
presuming (C# In A Nutshell is not so clear on this) is implemented
within the interpreter.  I poked through mono and found the file
mono/io-layer/sockets.c which appears to be the internal implementation
of the Sockets API.  Would the POSIX implementation look similar to
this?  Is there someplace all this is documented or am I on my own?

Thanks,
~akk

[1] http://j4p.sourceforge.net/
-- 
AKK~
http://trmk.org/~adam/blog