[Mono-list] getting fd for socket

Ellis, Edward edward.ellis@pnl.gov
Wed, 07 Jul 2004 08:18:51 -0700


#include <stdio.h>
int fileno(FILE *stream);

Converts a stream pointer to a file descriptor.

J. Edward Ellis

Pacific Northwest National Laboratory
(509) 375-3627 voice
(509) 375-2379 FAX
mailto:edward.ellis@pnl.gov=20



-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of James Willcox
Sent: Tuesday, July 06, 2004 4:31 PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] getting fd for socket

Hi,

I need to call getsockopt() on a Socket, and thought Socket.Handle would
simply give me the fd.  But that does not appear to be the case (it
gives a much higher number than the fd).  Does anyone know how I can
acquire the fd of a socket?

Thanks,
James