3 Socket - load the C socket.h defines
9 $proto = (getprotobyname('udp'))[2];
10 socket(Socket_Handle, PF_INET, SOCK_DGRAM, $proto);
14 This module is just a translation of the C F<socket.h> file.
15 Unlike the old mechanism of requiring a translated F<socket.ph>
16 file, this uses the B<h2xs> program (see the Perl source distribution)
17 and your native C compiler. This means that it has a
18 far more likely chance of getting the numbers right.
22 Only C<#define> symbols get translated; you must still correctly
23 pack up your own arguments to pass to bind(), etc.