• 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
threaded/forking server and distributed objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

threaded/forking server and distributed objects


  • Subject: threaded/forking server and distributed objects
  • From: "Tyler Riddle" <email@hidden>
  • Date: Wed, 12 Jul 2006 22:14:07 -0700

Howdy,

I'm trying to implement a fork()ing server using distributed objects;
since fork() is awfully unixy, I think conceptually you can apply this
same problem to a threaded server (I need to fork, threading won't cut
it for my application). With that out of the way, is it even possible?
Here is the problem I'm having:

I've got my vended object which clients can connect to and send
messages to, no problem there. In my server, once I get a request for
a command I want to fork() off another process (similar to creating a
thread just to handle the request). Now the trouble starts: what ever
the vended object returns goes right to the client. If I fork (or
create a thread to handle the task) I've got to return nothing in the
main process (can this be done with distributed objects?) and only
return data  and let the created process/thread return the useful
value to the client.

Did that make sense? Am I barking up the wrong tree with distributed objects?

Thanks for any help!

Tyler

--
Quote: "You need only reflect that one of the best ways to get
yourself a reputation as a dangerous citizen these days is to go about
repeating the very phrases which our founding fathers used in the
struggle for independence."--Charles Austin Beard
Web site: http://tylerriddle.com
AIM: The Masta Spice
_______________________________________________
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: threaded/forking server and distributed objects
      • From: James Bucanek <email@hidden>
    • Re: threaded/forking server and distributed objects
      • From: email@hidden
  • Prev by Date: Re: NSPasteboardPromiseTimeout question
  • Next by Date: Re: threaded/forking server and distributed objects
  • Previous by thread: Re: Drag and Drop: NSImageView masks/prevents superview from receiving drag
  • Next by thread: Re: threaded/forking server and distributed objects
  • Index(es):
    • Date
    • Thread