Re: File access questions
Kyle Sluder <[email protected]> Wed, 16 Nov 2011 13:49:23 -0800
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <CANEs-cxNMR1q1R20Y3xWZ4bnMYMpjzKBePirt3MJAX1XLGGJew@mail.gmail.com> |
On Wed, Nov 16, 2011 at 1:22 PM, Nathan Sims <[email protected]> wrote: > If the server only "sends" an update packet to clients upon their request, packet ordering probably shouldn't come into play in this scenario, but nevertheless, that's an interesting tradeoff. I will consider it! Well, it doesn't matter, because it looks like SOCK_SEQPACKET isn't supported for AF_UNIX. Since I do pretty much no sockets-related programming, I was unaware of this. If I understand what you're trying to accomplish, you need a way to associate requests with responses. Otherwise the client could issue two requests and get the responses in opposite order. Or, since datagrams are unreliable, the client could issue two requests and only get one response. Again, not being a sockets programmer, I'm not sure if my next suggestion is valid: consider using a SO_BROADCAST on your SOCK_DGRAM socket, instead of providing the same data to each client in response to a request. --Kyle Sluder