Content-Length: 252812 | pFad | https://github.com/python/cpython/issues/100813

6C Add IPv4 socket option constant IP_PKTINFO as socket module attribute. · Issue #100813 · python/cpython · GitHub
Skip to content

Add IPv4 socket option constant IP_PKTINFO as socket module attribute. #100813

@dsentinel

Description

@dsentinel

Feature or enhancement

Add IPv4 socket option constant IP_PKTINFO as socket module attribute.

Pitch

The socket option IP_PKTINFO is defined on Linux and OSX.
I would think we would want all the socket option constants defined in systems headers specifically <in.h> available as socket module level attributes. The most common ones are already included.

There are many other constants I would be willing to add, if desired.
In fact I'm curious if all constants should be pulled from headers dynamically.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/100813

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy