• 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: Datagram Socket Reading?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Datagram Socket Reading?


  • Subject: Re: Datagram Socket Reading?
  • From: RR <email@hidden>
  • Date: Fri, 10 May 2002 19:09:19 -0400

Paul I have looked into this issue extensively and there really are no feature-complete, Apple-supplied ObjC classes suited for socket communication. And I sort of poked around with OmniNetworking which looks like an awesome set of goodies, but far more than I need presently.

And in addition, I will swear on my dear grandfather's grave that I read once somewhere on developer.apple.com that the official recommendation for socket programming is to use the BSD layer functions. However I now cannot find reference to this statement at all!

So creating a new, blocking thread appears to be the way to go. To that end, you should go immediately and acquire a copy of W. Richard Stevens' Unix Network Programming Volume 1. It is without a doubt the most thorough book on Unix sockets programming available.

RR



On Friday, May 10, 2002, at 02:58 AM, Paul A. Seligman wrote:

I'm looking to write a wrapper for a UDP socket. What I'd like to do is to set up a socket with a particular server, write to it once (and process an expected response). That seems easy enough. My problem is how to sit and wait for an asynchronous message
from my server after the initial communication. NSFileHandle seemed like the obvious choice, but the documentation mentions that it is incompatible with datagram sockets.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Datagram Socket Reading?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: how to set the NSApp delegate?
  • Next by Date: Re: about @selector
  • Previous by thread: Re: Datagram Socket Reading?
  • Next by thread: Re: Datagram Socket Reading?
  • Index(es):
    • Date
    • Thread