Linux::Socket::Accept4 - accept4(2) bindings for Perl5
use Linux::Socket::Accept4; accept4(CSOCK, SSOCK, SOCK_CLOEXEC);
Linux::Socket::Accept4 is a wrapper module for accept4(2). This module is only available on GNU Linux.
accept4(2) is faster than accept(2) in some case.
my $peeraddr = accept4($csock, $ssock, $flags);
Accept a connection on a socket.
All constants are exported by default.
SOCK_CLOEXEC
SOCK_NONBLOCK
Copyright (C) tokuhirom.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
tokuhirom <tokuhirom@gmail.com>
To install Linux::Socket::Accept4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Linux::Socket::Accept4
CPAN shell
perl -MCPAN -e shell install Linux::Socket::Accept4
For more information on module installation, please visit the detailed CPAN module installation guide.