diff options
author | Keith Packard <keithp@keithp.com> | 2013-01-08 16:47:05 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-10-31 13:07:46 -0700 |
commit | adf920aa25c1709998c7c9276927061bd58e2dfc (patch) | |
tree | 56170ded539860b1b9c7c33bc509f1b5dbdcaf60 /Xtrans.c | |
parent | 9e8d99c2e27f2c8acbbfb5b760649aa1bfad665e (diff) |
Add APIs to send file descriptors through the network
Exposes new TRANS(SendFd)/TRANS(RecvFd) APIs.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xtrans.c')
-rw-r--r-- | Xtrans.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -873,6 +873,18 @@ TRANS(Writev) (XtransConnInfo ciptr, struct iovec *buf, int size) } int +TRANS(SendFd) (XtransConnInfo ciptr, int fd, int do_close) +{ + return ciptr->transptr->SendFd(ciptr, fd, do_close); +} + +int +TRANS(RecvFd) (XtransConnInfo ciptr) +{ + return ciptr->transptr->RecvFd(ciptr); +} + +int TRANS(Disconnect) (XtransConnInfo ciptr) { |