logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Socket::Linux - Socket constants defined in Linux <netinet/tcp.h>

Author

       Salvador Fandiño (sfandino@yahoo.com)

Description

       Exports to perl the constants defined in Linux <netinet/tcp.h>

Name

       Socket::Linux - Socket constants defined in Linux <netinet/tcp.h>

See Also

       Socket, perlfunc, tcp(7).

Synopsis

         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);

See Also