FROM : Alastair Houghton
DATE : Tue Nov 20 19:58:17 2007
On 20 Nov 2007, at 18:35, James Bucanek <<email_removed>> wrote:
> Well, that's what I thought too. I'm pretty sure that I've use the
> same Mach port for both send/receive and I would have assumed that
> you could use the same UNIX socket for both send and receive.
Well Mach ports are a bit different to a socket, because they're just
endpoint names (like TCP/IP ports) rather than connection identifiers.
So it clearly wouldn't work with Mach ports.
> (I thought that from each end/process that a socket appears as a
> bidirectional pipe -- but maybe I'm wrong. It's actually been a very
> long time since I used UNIX sockets directly.)
Yes, that's right. A UNIX socket is just like a named bidirectional
pipe.
That's why I thought it might work with the same port on both positions.
Kind regards,
Alastair
--
http://alastairs-place.net
DATE : Tue Nov 20 19:58:17 2007
On 20 Nov 2007, at 18:35, James Bucanek <<email_removed>> wrote:
> Well, that's what I thought too. I'm pretty sure that I've use the
> same Mach port for both send/receive and I would have assumed that
> you could use the same UNIX socket for both send and receive.
Well Mach ports are a bit different to a socket, because they're just
endpoint names (like TCP/IP ports) rather than connection identifiers.
So it clearly wouldn't work with Mach ports.
> (I thought that from each end/process that a socket appears as a
> bidirectional pipe -- but maybe I'm wrong. It's actually been a very
> long time since I used UNIX sockets directly.)
Yes, that's right. A UNIX socket is just like a named bidirectional
pipe.
That's why I thought it might work with the same port on both positions.
Kind regards,
Alastair
--
http://alastairs-place.net
| Related mails | Author | Date |
|---|---|---|
| James Bucanek | Nov 20, 01:34 | |
| Dave Camp | Nov 20, 01:52 | |
| Bill Cheeseman | Nov 20, 14:18 | |
| Alastair Houghton | Nov 20, 14:48 | |
| Nir Soffer | Nov 20, 14:51 | |
| Derek Chesterfield | Nov 20, 15:11 | |
| James Bucanek | Nov 20, 16:52 | |
| Alastair Houghton | Nov 20, 17:12 | |
| James Bucanek | Nov 20, 19:06 | |
| Alastair Houghton | Nov 20, 19:09 | |
| James Bucanek | Nov 20, 19:35 | |
| Alastair Houghton | Nov 20, 19:58 |






Cocoa mail archive

