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: Thu, 29 Jun 2006 08:44:43 -0400
...
Alternatively, set up the listening socket in your app, and use
NSTask to run your inetd daemon. NSTask lets you hook up stdin and
stdout before launching. It ought to work with a socket, I haven't
tried it.
Thanks very much for this comprehensive description of TCP server
architectures.
In my case the old inetd program is kind of a mess and not well
suited for my current needs, but the library it uses for 'speaking'
the DICOM protocol is pretty good (and beyond my ability to re-
write). The only difficulty is that the library is really set up to
communicate by way of files.
Probably your last suggestion would work well in my situation - I can
re-write the outer 'server' layer using the libraries and launch this
using NSTask.
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