def recv(sock, n_fds): result = [] for i in xrange(n_fds): result.append(_ancillary.recv_fd(sock.fileno())) return result
def recv_fd(self): return _ancillary.recv_fd(self.fd)