Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

threaded/forking server and distributed objects



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.