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


Download files

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

Source Distribution

python-passfd-0.2.tar.gz (12.5 kB view details)

Uploaded Source

File details

Details for the file python-passfd-0.2.tar.gz.

File metadata

  • Download URL: python-passfd-0.2.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-passfd-0.2.tar.gz
Algorithm Hash digest
SHA256 d234ede3c1763eafd2653d8bff58d3ecade03c9a73d35892c662cd90d15b0295
MD5 34c67a248223b8f06a3d55d903ff2903
BLAKE2b-256 0d1feae43e8889b5e50bd904f0242bf79497efa6e0a6ab146a60ce944f015fd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page