Re: Distributed Objects: multiple services?
Re: Distributed Objects: multiple services?
- Subject: Re: Distributed Objects: multiple services?
- From: August Trometer <email@hidden>
- Date: Mon, 26 Jun 2006 21:15:40 -0400
Thanks for the reply!
I've been working on an architecture that does just that, but I was
hoping there was a better (easier?) way. As I said, DO is fairly new
to me.
Thanks again!
August
On Jun 26, 2006, at 9:07 PM, email@hidden wrote:
Now, when the clients connect, it seems I can only have one DO
server per port. But then I have to figure out which document the
client wants and return data for that. Is that correct? Or is
there a way I can have multiple DO servers and the client could
connect directly to the one associated with the document?
I want to keep to one-port usage, because I don't know how many
documents the user might have open and one-per would get out of
hand (and collide with other services).
If you must use only one port, set the root object of your DO
connection to be some class that allows clients to pick the
document they want. If there's no security issues or similar, you
could probably just use an NSDictionary, with the document title or
some similar ID as the key. If you want to have more control,
implement your own class to handle requests for particular documents.
Wade Tregaskis
ICQ: 40056898
AIM, Yahoo & Skype: wadetregaskis
MSN: email@hidden
iChat & email: email@hidden
Jabber: email@hidden
Google Talk: email@hidden
http://homepage.mac.com/wadetregaskis/
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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