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

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
  • Comment on Re^2: [OT]: How to do fileno() and Win32::APIFile::FdGetOsFHandle() in C