• 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: Network programming
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Network programming
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Keeping windows from being displayed in Dock menu.
  • Next by Date: Application Name
  • Previous by thread: Re: Keeping windows from being displayed in Dock menu.
  • Next by thread: Re: Network programming
  • Index(es):
    • Date
    • Thread