Re: Network programming
Re: Network programming
- Subject: Re: Network programming
- From: Graham Wihlidal <email@hidden>
- Date: Sat, 01 Sep 2001 00:21:44 -0600
>
I can't seem to find any real documentation on how to access TCP/IP and UDP
>
through Cocoa/Obj-c. I assume I can just use socket/listen/recv natively,
>
but I had assumed that there was some kind of networking abstraction
>
present. There's no sample code (that I could find) at Apple.com, and the
>
docs were pretty much non-existent ("description forthcoming").
>
>
Any hints at what to look at? I'm assuming things like NSInternetPort etc.
>
are the right area, but without any docs or sample code it kind of leaves
>
you scratching your head.
Check out CFSocket in CoreFoundation (not documented but has all the
function headers and descriptions in the CFSocket header file)
You can also use standard UNIX sockets and either a system thread, Cocoa
based thread, or a simple loop to poll for data
Hope that helps somewhat,
Graham