Socket::Linux - Socket constants defined in Linux <netinet/tcp.h>
use Socket qw(IPPROTO_TCP); use Socket::Linux qw(TCP_KEEPINTVL TCP_KEEPIDLE TCP_KEEPCNT); setsockopt($sock, IPPROTO_TCP, TCP_KEEPIDLE, 10); setsockopt($sock, IPPROTO_TCP, TCP_KEEPINTVL, 10); setsockopt($sock, IPPROTO_TCP, TCP_KEEPCNT, 3);
Exports to perl the constants defined in Linux <netinet/tcp.h>
Socket, perlfunc, tcp(7).
Salvador Fandiño (sfandino@yahoo.com)
Copyright (C) 2010 by Qindel Formación y Servicios SL.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.
To install Socket::Linux, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Socket::Linux
CPAN shell
perl -MCPAN -e shell install Socket::Linux
For more information on module installation, please visit the detailed CPAN module installation guide.