• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
References: 
 >Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions ) (From: Eric Gorr <email@hidden>)
 >Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions ) (From: "Quinn \"The Eskimo!\"" <email@hidden>)

  • Prev by Date: Re: NSNetService returning NSNetServicesBadArgumentError
  • Next by Date: Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
  • Previous by thread: Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
  • Next by thread: Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
  • Index(es):
    • Date
    • Thread