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: Rick Hoge <email@hidden>
- Date: Wed, 28 Jun 2006 23:34:27 -0400
Why not just use the HTTPServer sample code <http://
developer.apple.com/samplecode/CocoaHTTPServer/index.html> ?
This is indeed a good example - the CocoaSOAP example is based on this.
Now my problem is to get file descriptors corresponding to the input
and output streams - the libraries I want to re-use for parsing the
streams are written assuming they'll be used in an app launched by
inetd with the input and output streams mapped to stdin and stdout.
CocoaHTTPServer sets up NSInputStream and NSOutputStream objects - I
need to figure out how to adapt usage of functions that read from
stdin and stdout to work with these streams...
Rick
_______________________________________________
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