Re: Implementing a TCP port listener in Cocoa
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