in reply to IP constants from netinet/in.h in perl

I can't use 3rd party modules, just basic perl

Sure you can, Yes, even you can use CPAN

perl IP_ADD_MEMBERSHIP perl IP_ADD_MEMBERSHIP site:search.cpan.org

  • Comment on Re: IP constants from netinet/in.h in perl

Replies are listed 'Best First'.
Re^2: IP constants from netinet/in.h in perl
by xchg (Initiate) on Apr 04, 2011 at 20:04 UTC
    No I can't, it has to be pure perl without installing some 3rd party stuff. I've checked modules and it seems they all create their own constants or use C for networking, so these constants aren't probably defined anywhere in perl.
      so these constants aren't probably defined anywhere in perl.

      Probably not

      You could use h2ph / h2pl