MCPcopy Index your code
hub / github.com/python/cpython / send_fds

Function send_fds

Lib/socket.py:567–575  ·  view source on GitHub ↗

send_fds(sock, buffers, fds[, flags[, address]]) -> integer Send the list of file descriptors fds over an AF_UNIX socket.

(sock, buffers, fds, flags=0, address=None)

Source from the content-addressed store, hash-verified

565
566if hasattr(_socket.socket, "sendmsg"):
567 def send_fds(sock, buffers, fds, flags=0, address=None):
568 """ send_fds(sock, buffers, fds[, flags[, address]]) -> integer
569
570 Send the list of file descriptors fds over an AF_UNIX socket.
571 """
572 import array
573
574 return sock.sendmsg(buffers, [(_socket.SOL_SOCKET,
575 _socket.SCM_RIGHTS, array.array("i", fds))])
576 __all__.append("send_fds")
577
578if hasattr(_socket.socket, "recvmsg"):

Callers

nothing calls this directly

Calls 1

sendmsgMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…