NAME

Socket - load the C socket.h defines

SYNOPSIS

        use Socket;
        $proto = (getprotobyname('udp'))[2];         
        socket(Socket_Handle, PF_INET, SOCK_DGRAM, $proto); 

DESCRIPTION

This module is just a translation of the C Fh2xs program (see the Perl source distribution) and your native C compiler. This means that it has a far more likely chance of getting the numbers right.

NOTE

Only #define symbols get translated; you must still correctly pack up your own arguments to pass to bind(), etc.