6 Apr 2008 23:15
Passing FDs over UNIX sockets
Stelian Ionescu <sionescu <at> common-lisp.net>
2008-04-06 21:15:27 GMT
2008-04-06 21:15:27 GMT
I've recently added a few new functions to net.sockets: MAKE-SOCKET-FROM-FD, MAKE-SOCKET-PAIR and the pair SEND-FILE-DESCRIPTOR/RECEIVE-FILE-DESCRIPTOR for passing FDs over UNIX sockets. I've done a few tests and while OSX can pass FDs either over stream sockets or datagram sockets, on Linux only datagram sockets seem to work. -- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur.
I've recently added a few new functions to net.sockets: MAKE-SOCKET-FROM-FD, MAKE-SOCKET-PAIR and the pair SEND-FILE-DESCRIPTOR/RECEIVE-FILE-DESCRIPTOR for passing FDs over UNIX sockets. I've done a few tests and while OSX can pass FDs either over stream sockets or datagram sockets, on Linux only datagram sockets seem to work. -- -- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur.
RSS Feed