Help language development. Donate to The Perl Foundation

Constants::Sys::Socket cpan:GARLANDG last updated on 2019-05-27

Constants-Sys-Socket-0.0.1/

NAME

Constants::Sys::Socket - Socket constants defined in sys/socket.h

SYNOPSIS

use Constants::Sys::Socket :SOCK, :AF, :SO, :SOL;

say SOCK::DGRAM;

say AF::INET6;

say SO::REUSEADDR;

say SOL::SOCKET; #The only value in the enum

say SOCK.enums.keys;

say AF.enums.keys;

say SO.enums.keys;

DESCRIPTION

Constants::Sys::Socket contains many enumerated values that are implemented as #define directives in .

This module should be compatible with windows, macos, linux, netbsd, freebsd, openbsd, and dragonflybsd. Each platform will receive a slightly different enumerations.

Based on C headers found on official sites and unofficial mirrors of source trees.

AUTHOR

Travis Gibson TGib.Travis@protonmail.com

COPYRIGHT AND LICENSE

Copyright 2019 Travis Gibson

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.