Can you select() socketpair()-generated descriptors?
Date: 29 Sep 2004 12:33:59 -0700
I'm pulling my hair out over trying to get a socket passed from one
process to another. My latest problem is in getting the receiving
process to detect the incoming socket. I'm using select() as I do with
all the socket descriptors and pipe descriptors, but it just times
out, as though the socket was never sent. If I create a set of
descriptors using socketpair(AF_UNIX, SOL_SOCKET, 0, desAncils), does
select() treat those descriptors the same as those created with
pipe(), accept() or connect()?
- [patch] SOCK_CLOEXEC, SOCK_NONBLOCK and MSG_CMSG_CLOEXEC
... MSG_CMSG_CLOEXEC to recvmsgmakes file descriptors ... I do not pass the SOCK_* flags to MAC because this may cause incorrect ... +.Xr socket 2, ...
- Re: reading a fixed-length message
... properly (close the socket, serial port, etc.) ... depending on the descriptors you are using. ... if serialfd for write ...
- Can you select() socketpair()-generated descriptors?
... I'm pulling my hair out over trying to get a socket passed from one ... My latest problem is in getting the receiving ... all the socket descriptors and pipe descriptors, ...
- are socket handles always usabele by file i/o functions?
... descriptors are IFS handles by using these descriptors ... I thought that if I create socket from WSAPROTOCOL_INFO which has not ... But it's written that if SPI does not create IFS handle, ... can read that it returns handle that can be used in file I/O functions. ...
- Re: Linux select command issues
... double-check any descriptors (by referring ... It comes down to whether or not 'select' is a pure status reporting ... If it's a pure status reporting function, ... What would happen if you 'select'ed for write on a socket that wasn't ...