Re: Can you select() socketpair()-generated descriptors?
From: Andrew Taylor (ataylor_at_its.to)
Date: 09/29/04
- Next message: Brian Raiter: "Re: Can you select() socketpair()-generated descriptors?"
- Previous message: Dragan Cvetkovic: "Re: Get Unix Groups"
- In reply to: Jo: "Can you select() socketpair()-generated descriptors?"
- Next in thread: Brian Raiter: "Re: Can you select() socketpair()-generated descriptors?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Sep 2004 20:11:32 GMT
Jo wrote:
> 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()?
The second parameter to socketpair is wrong. You should be passing a
socket type (e.g. SOCK_STREAM, SOCK_DGRAM, etc.).
-- Andrew
- Next message: Brian Raiter: "Re: Can you select() socketpair()-generated descriptors?"
- Previous message: Dragan Cvetkovic: "Re: Get Unix Groups"
- In reply to: Jo: "Can you select() socketpair()-generated descriptors?"
- Next in thread: Brian Raiter: "Re: Can you select() socketpair()-generated descriptors?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|