IOMux::Poll - simplify use of poll()
IOMux::Poll is an IOMux
use IOMux::Poll; my $mux = IOMux::Poll->new; my $server = IOMux::Service::TCP->new(...); $mux->add($server); $mux->loop;
Multiplexer based on the poll() system call, defined by POSIX.
poll()
The poll has less administration overhead than the select call (implemented via IOMux::Select) because it avoids the need to play with bit-vectors to see which file handles got activated. However, poll is not supported on all platforms.
poll
select
Extends "DESCRIPTION" in IOMux.
Extends "METHODS" in IOMux.
Extends "Constructors" in IOMux.
Inherited, see "Constructors" in IOMux
Extends "Accessors" in IOMux.
The internal IO::Poll object.
Extends "User interface" in IOMux.
Inherited, see "User interface" in IOMux
Extends "For internal use" in IOMux.
Inherited, see "For internal use" in IOMux
Extends "DETAILS" in IOMux.
Extends "Installation" in IOMux.
Extends "Event managers" in IOMux.
Extends "File handles" in IOMux.
Poll is only available on UNIX. Windows Vista has added a WSAPoll with comparible functionality (probably), but afaik there is no binary wrapper available for perl yet.
This module is part of IOMux distribution version 1.01, built on January 15, 2020. Website: http://perl.overmeer.net/CPAN
Copyrights 2011-2020 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
To install IOMux, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IOMux
CPAN shell
perl -MCPAN -e shell install IOMux
For more information on module installation, please visit the detailed CPAN module installation guide.