Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendmsg() and recvmsg() for C socket module #41944

Closed
hwundram mannequin opened this issue May 3, 2005 · 6 comments
Closed

sendmsg() and recvmsg() for C socket module #41944

hwundram mannequin opened this issue May 3, 2005 · 6 comments
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement

Comments

@hwundram
Copy link
Mannequin

hwundram mannequin commented May 3, 2005

BPO 1194378
Nosy @pitrou, @giampaolo, @ezio-melotti
Files
  • socketmodule.diff.tar.bz2: New patches to socketmodule.{c,h} to implement recvmsg and sendmsg in an abstraction.
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2009-07-27.02:39:18.047>
    created_at = <Date 2005-05-03.11:19:55.000>
    labels = ['extension-modules', 'type-feature']
    title = 'sendmsg() and recvmsg() for C socket module'
    updated_at = <Date 2009-07-27.02:39:18.036>
    user = 'https://bugs.python.org/hwundram'

    bugs.python.org fields:

    activity = <Date 2009-07-27.02:39:18.036>
    actor = 'ezio.melotti'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-07-27.02:39:18.047>
    closer = 'ezio.melotti'
    components = ['Extension Modules']
    creation = <Date 2005-05-03.11:19:55.000>
    creator = 'hwundram'
    dependencies = []
    files = ['6639']
    hgrepos = []
    issue_num = 1194378
    keywords = ['patch']
    message_count = 6.0
    messages = ['48287', '48288', '78264', '78358', '78369', '90973']
    nosy_count = 8.0
    nosy_names = ['beazley', 'pitrou', 'therve', 'forest', 'giampaolo.rodola', 'hwundram', 'ezio.melotti', 'gdesmott']
    pr_nums = []
    priority = 'low'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue1194378'
    versions = ['Python 3.1', 'Python 2.7']

    @hwundram
    Copy link
    Mannequin Author

    hwundram mannequin commented May 3, 2005

    The following tar.bz2 contains a feature enhancement
    proposal for the socket module to create wrappings of
    the recvmsg and sendmsg primitives. These are sometimes
    useful, especially when dealing with ancillary
    messages, such as communicating the process, user and
    group id of a remote process to a server for proper
    identification.

    These functions have so far been available in a
    separate module (python-eunuchs from the twisted
    project), but as they are standard POSIX and have been
    available on *BSD, AIX, Linux and several other OSs for
    some time they should be integrated into the core
    socket module.

    The attached file contains patches for configure.in the
    socket module, socket.py and pyconfig.h.in. I've yet to
    write a test-suite, and the documentation could use
    some reworking.

    @hwundram hwundram mannequin added extension-modules C modules in the Modules dir labels May 3, 2005
    @therve
    Copy link
    Mannequin

    therve mannequin commented Mar 6, 2007

    That's really great, it's a shame this patch didn't get much interest. Do you feel like adding test to this, it would probably psuh for its inclusion ?

    @beazley
    Copy link
    Mannequin

    beazley mannequin commented Dec 24, 2008

    Bump. This functionality seems to be needed if anyone is going to be
    messing around with advanced features of IPv6. As it stands, the socket
    module in Python 2.6/3.0 is incomplete without this.

    @beazley
    Copy link
    Mannequin

    beazley mannequin commented Dec 27, 2008

    Just a followup comment to note that adding support for
    sendmsg()/recvmsg() is what you need to do "file descriptor passing"
    between processes on Unix---another technique for writing network servers.

    @pitrou
    Copy link
    Member

    pitrou commented Dec 27, 2008

    The patch doesn't apply cleanly to the current trunk (which is
    understandable, given the patch is from 2005). Also, some tests would be
    welcome as Thomas said. And bonus points for documentation :)

    @pitrou pitrou added type-feature A feature request or enhancement labels Dec 27, 2008
    @ezio-melotti
    Copy link
    Member

    Closing this as duplicate of bpo-6560.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants