Den 30-04-2016 kl. 15:57 skrev Brandon Allbery:
Note that "nfds" is the highest fd number to check for, plus one. For the naïve implementation, you need to add one here.


Right, it wasn't in this example, but it doesn't matter much.

    my $readfds = CArray[uint8].new(0, 2);


What is this initialized to? The bit vectors are both in and out parameters.


Shouldn't this be a C style array with two bytes, 0 and 2, or 0000000000000010 ?

/kaare

Reply via email to