Re: UDP sockets and Cocoa abstractions
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