[ python-Feature Requests-567969 ] Missing socketpair() function.

SourceForge.net noreply at sourceforge.net
Mon Feb 14 16:50:38 CET 2005


Feature Requests item #567969, was opened at 2002-06-12 12:46
Message generated for change (Comment added) made by grahamh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=567969&group_id=5470

Category: Python Library
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Graham Horler (grahamh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Missing socketpair() function.

Initial Comment:
Coming from a C++ background, I have noticed the 
absence of a socketpair() function in the socket module.

I have implemented a couple of workarounds (see 
attached sockpair2.py), which I use a lot.

But there are security and portability problems lurking.

How about a nice shiny new socketpair() call in 
socketmodule?

Thanks, Graham.


----------------------------------------------------------------------

>Comment By: Graham Horler (grahamh)
Date: 2005-02-14 15:50

Message:
Logged In: YES 
user_id=543663

I see python2.4 has a socketpair() function courtesy of Dave
Cole - excellent.
So, this Feature Request can now be closed I spose.


----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-06-15 14:23

Message:
Logged In: YES 
user_id=21627

Good idea. Would you like to work on a patch? Notice that
this would involve autoconf machinery, since I doubt that
socketpair is universally available.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=567969&group_id=5470


More information about the Python-bugs-list mailing list