in reply to Re^2: Timeout Socket recv on UDP... on windows
in thread Timeout Socket recv on UDP... on windows
I'm not at all sure that an arbitrary collection of 7 uppercase letters is any better.
It would only turn up 9 of the 33 posts the search term I gave turns up. And I'm not sure that 9 are relevant. The 33 definitely are. It's very unlikely that number would turn up in any other context.
And I'm not sure that it would do anything to help them. As that symbolic constant isn't available to them from Perl.
And I'm not sure it would help them work out the value they need either. Even if they have the relevant C header files, FIONBIO is defined there as:
#define FIONBIO _IOW('f', 126, u_long) /* set/clear non-blocking i +/o */
And the relevant parts of that are defined as:
#define _IOW(x,y,t) (IOC_IN|(((long)sizeof(t)&IOCPARM_MASK)<<16)|( +(x)<<8)|(y)) #define IOCPARM_MASK 0x7f #define IOC_IN 0x80000000 /* copy in parameters */
Now, I think I'm pretty offay with C and bit-twiddling, but I'm not sure that I could work out what the required number is from that lot.
And I'm not at all sure that I could recreate that math in Perl.
That's a lot of "not sures". I am sure that if I use the hex constant, it finds the posts. And works.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Timeout Socket recv on UDP... on windows
by quester (Vicar) on Jan 28, 2008 at 10:21 UTC | |
by BrowserUk (Patriarch) on Jan 28, 2008 at 13:02 UTC |