Re: help:socket programming!
Re: help:socket programming!
- Subject: Re: help:socket programming!
- From: Matt Jarjoura <email@hidden>
- Date: Fri, 4 Feb 2005 10:58:12 -0500
If you check out my website, I wrote a CFStream connection and wrapped
it in Cocoa. However, this was back in 2002. Now Panther has
NSOutputStream, NSInputStream, and NSStream that even though they call
the same CFStream code, for the Cocoa purists out there, they are
super easy to implement.
http://userpages.umbc.edu/~mjarjo1/
CFStream/NSStream will handle threading the select code for you if you
want by basically attaching itself to your NSRunLoop.
The only thing CFStream/NSStream will not handle is accepting socket
connections and for that you will have to create your own custom BSD
code for that and attach it to a CFSocket for listening. However, one
a connection is made, simply bind it with a CFStream/NSStream and
you're ready to go.
-Matt
On Thu, 3 Feb 2005 21:30:19 -0800 (PST), apr trainees
<email@hidden> wrote:
>
> hi,
> i am new to mac os x.
> i need to develop an application that uses socket programming...specifically
> udp.
>
> i know c and c++.so i thought this would be easier to develop in
> carbon.however i would still like to know how is socket programming done in
> cocoa before deciding.
> is it too cumbersome?
>
> i looked up the apple site and found cfsockets.is there any other way of
> using sockets?
>
> thanx
>
> richa
>
> ________________________________
> Do you Yahoo!?
> The all-new My Yahoo! – Get yours free!
>
>
> _______________________________________________
> 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
>
>
--
Matt Jarjoura
"To announce that there must be no criticism of the
president, or that we are to stand by the president,
right or wrong, is not only unpatriotic and servile,
but is morally treasonable to the American public."
- Theodore Roosevelt (1918)
_______________________________________________
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