This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Missing socketpair() function.
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: loewis, pysquared
Priority: normal Keywords:

Created on 2002-06-12 11:46 by pysquared, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sockpair2.py pysquared, 2002-06-12 11:46 2 different socketpair() functions
Messages (3)
msg53556 - (view) Author: Graham Horler (pysquared) Date: 2002-06-12 11:46
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.
msg53557 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-06-15 13:23
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.
msg53558 - (view) Author: Graham Horler (pysquared) Date: 2005-02-14 15:50
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.
History
Date User Action Args
2022-04-10 16:05:24adminsetgithub: 36733
2002-06-12 11:46:55pysquaredcreate