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

Re: Socket Connections


  • Subject: Re: Socket Connections
  • From: Jeff LaMarche <email@hidden>
  • Date: Sun, 28 Apr 2002 23:11:04 -0700

On Sunday, April 28, 2002, at 10:20 PM, Nathan Zamecnik wrote:

Hello, I'm new to this list so sorry if this was just covered....although my
searches indicate it has not. My question is does anyone have a good
resource on the net or have information on socket programming in Cocoa.
Basically, I want to know how to initilize a new socket to listen and allow
other sockets to connect to it and send it a simple message, such as a
string. Does each new socket have to be put into a new thread to allow
multiple connections? Any information on setting up sockets would be great,
thanx.

You have a number of options here. If you're controlling both sides of the connection and don't need interoperability with other computers or programs, use DO. If you want to use sockets without all the hassle, OmniGroup has a great framework (OmniNetworking) that takes a lot of the tedium out of socket programming (www.omnigroup.com). If you want to program to the metal and use good old fashioned BSD sockets, go to Google and search for "Beej Socket" - there's a good tutorial floating around the net written by a guy who goes by "Beej" and it takes you by the hand and shows you how to do it. There are many examples of source code that does this; one I can think of is NewsFlash (newsflash.sourceforge.net) that uses raw socket programming in Objective-C..
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Socket Connections (From: Nathan Zamecnik <email@hidden>)

  • Prev by Date: Socket Connections
  • Next by Date: Re: Socket Connections
  • Previous by thread: Socket Connections
  • Next by thread: Re: Socket Connections
  • Index(es):
    • Date
    • Thread