Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: select RBITS,WBITS,EBITS,TIMEOUT. The meaning of all the *BITS

by ikegami (Patriarch)
on Oct 25, 2020 at 11:12 UTC ( [id://11123146]=note: print w/replies, xml ) Need Help??


in reply to select RBITS,WBITS,EBITS,TIMEOUT. The meaning of all the *BITS

It's used to specify the handles to monitor for exceptional conditions.

If you need it, you'd know it.


Perl's select is a thin wrapper for the system call of the same name.

From my select(2) man page:

The file descriptors in exceptfds will be watched for exceptional conditions. (For examples of some exceptional conditions, see the discussion of POLLPRI in poll(2).)

From my poll(2) man page:

POLLPRI

There is some exceptional condition on the file descriptor. Possibilities include:

  • There is out-of-band data on a TCP socket (see tcp(7)).
  • A pseudoterminal master in packet mode has seen a state change on the slave (see ioctl_tty(2)).
  • A cgroup.events file has been modified (see cgroups(7)).

By the way, IO::Select presents a much better interface.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123146]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-24 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found