• 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: UDP sockets and Cocoa abstractions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UDP sockets and Cocoa abstractions


  • Subject: Re: UDP sockets and Cocoa abstractions
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 07 Feb 2005 17:30:35 -0800

On 2005-02-07 17:26:21 -0800 Andrew White <email@hidden> wrote:


Is there a cocoa abstraction for UDP sockets?

Although it is not specified in
file:///Developer/ADC Reference Library/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSStream.html

I get the impression that
NSStream getStreamsToHost:port:inputStream:outputStream:

is used to create a TCP stream only. The same seems to apply for CFStreams (Core Foundation).

Any suggestions?


The stream classes, as the names suggest, are for stream-oriented sockets. If you wish to use a UDP socket as a run loop source, you can use CFSocket, which is somewhat lower-level but works well enough with Cocoa.


Douglas Davidson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: UDP sockets and Cocoa abstractions
      • From: Andrew White <email@hidden>
References: 
 >UDP sockets and Cocoa abstractions (From: Andrew White <email@hidden>)

  • Prev by Date: UDP sockets and Cocoa abstractions
  • Next by Date: Re: subclassed NSOpenGLView won't draw in subclassed NSView
  • Previous by thread: UDP sockets and Cocoa abstractions
  • Next by thread: Re: UDP sockets and Cocoa abstractions
  • Index(es):
    • Date
    • Thread