Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
- Subject: Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
- From: Eric Gorr <email@hidden>
- Date: Wed, 27 Jul 2011 08:12:12 -0400
On Jul 27, 2011, at 3:34 AM, Quinn The Eskimo! wrote:
>
> On 27 Jul 2011, at 01:59, Eric Gorr wrote:
>
>> I have a handler on DISPATCH_SOURCE_TYPE_READ and the handler block is
>> getting called. However, the 'accept' call is setting errno to
>> 22...invalid parameter.
>
> You're calling accept() in your client? That's very strange, and unlikely to yield useful results.
Of that I have no doubt.
> The client call sequence is typically socket(), connect(), write(), read(), close(). This doesn't change when you switch from TCP to UNIX domain sockets.
Thank you. I will try to make some modifications based on these comments.
> Some suggestions:
>
> o BetterAuthorizationSample shows the basics of implementing a non-GCD client.
>
> <http://developer.apple.com/library/mac/samplecode/BetterAuthorizationSample/index.html>
>
> o If you want to implement connect() in a GCD style, check out my recent post to DevForums on that subject.
>
> <https://devforums.apple.com/message/488837#488837>
For some reason that link isn't working, although a link of a similar form does work for me...
https://devforums.apple.com/message/427174#427174
Can you mention the name of the thread, date, and specific forum this message was in?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden