Skip to main content

Python functions to pass file descriptors across UNIX domain sockets

Project description

This simple extension provides two functions to pass and receive file descriptors across UNIX domain sockets, using the BSD-4.3+ sendmsg() and recvmsg() interfaces.

Direct bindings to sendmsg and recvmsg are not provided, as the API does not map nicely into Python.

Please note that this only supports BSD-4.3+ style file descriptor passing, and was only tested on Linux. Patches are welcomed!

For more information, see one of the R. Stevens’ books:
  • Richard Stevens: Unix Network Programming, Prentice Hall, 1990; chapter 6.10
  • Richard Stevens: Advanced Programming in the UNIX Environment, Addison-Wesley, 1993; chapter 15.3

Project details

Release history Release notifications

History Node


This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
python-passfd-0.1.tar.gz (55.2 kB) Copy SHA256 hash SHA256 Source None Jun 8, 2010

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page