in reply to [OT]: How to do fileno() and Win32::APIFile::FdGetOsFHandle() in C

I already have the C equivalent of $sock ... I just need to do the fileno() and FdGetOsFHandle() bits

If you already have the C equivalent of $sock, you don't need fileno+FdGetOsFHandle since they return the C equivalent of $sock.

Replies are listed 'Best First'.
Re^2: [OT]: How to do fileno() and Win32::APIFile::FdGetOsFHandle() in C
by syphilis (Archbishop) on Dec 14, 2006 at 09:03 UTC
    If you already have the C equivalent of $sock, you don't need fileno+FdGetOsFHandle since they return the C equivalent of $sock

    Dammit ... you're right ... though there's something in your convoluted reasoning that troubles me :-)

    My "lhSocket" variable (of type "SOCKET") is already in the form it needs to be. I don't need to do anything to it at all !!

    Maaan ... C is so easy ... why do I bother with perl ;-)

    Thanks ikegami, BrowserUK.

    Cheers,
    Rob