• 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: Implementing a TCP port listener in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing a TCP port listener in Cocoa


  • Subject: Re: Implementing a TCP port listener in Cocoa
  • From: glenn andreas <email@hidden>
  • Date: Wed, 28 Jun 2006 22:11:49 -0500


On Jun 28, 2006, at 8:35 PM, Dustin Voss wrote:

On 28 Jun 2006, at 7:06 AM, Rick Hoge wrote:

I would like to implement an internet service from within a Cocoa application such that when a remote client requests a connection on a certain port the connection and subsequent service will be handled by the Cocoa application.

I want to do this using Cocoa Foundation classes if possible, but it's not really clear from the documentation how to set this up. Most of the documentation is geared towards Distributed Objects (DO) and not provision of a TCP port service in the classic Unix sense.

There are a number of socket libraries that can make this easier, there's a list at http://cocoadev.com/index.pl?SocketClasses.


AsyncSocket is mine, it's good. Some people like NetSocket. OmniNetworking is probably more complicated and capable than you need.

Why not just use the HTTPServer sample code <http:// developer.apple.com/samplecode/CocoaHTTPServer/index.html> ?




Glenn Andreas                      email@hidden
 <http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets

_______________________________________________
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


  • Follow-Ups:
    • Re: Implementing a TCP port listener in Cocoa
      • From: Rick Hoge <email@hidden>
References: 
 >Implementing a TCP port listener in Cocoa (From: Rick Hoge <email@hidden>)
 >Re: Implementing a TCP port listener in Cocoa (From: Dustin Voss <email@hidden>)

  • Prev by Date: Re: Getting a return value from a dialog
  • Next by Date: Re: Implementing a TCP port listener in Cocoa
  • Previous by thread: Re: Implementing a TCP port listener in Cocoa
  • Next by thread: Re: Implementing a TCP port listener in Cocoa
  • Index(es):
    • Date
    • Thread