• 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: 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


  • Follow-Ups:
    • Re: Implementing a TCP port listener in Cocoa
      • From: Greg Herlihy <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>)
 >Re: Implementing a TCP port listener in Cocoa (From: glenn andreas <email@hidden>)
 >Re: Implementing a TCP port listener in Cocoa (From: Rick Hoge <email@hidden>)
 >Re: Implementing a TCP port listener in Cocoa (From: Jakob Olesen <email@hidden>)

  • Prev by Date: Re: beginer: force NSTextField to accept numeric input only
  • Next by Date: my Graceful Application Termination doesn't work with my applicationShouldTerminate
  • 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