Re: Distributed Objects: multiple services?
Re: Distributed Objects: multiple services?
- Subject: Re: Distributed Objects: multiple services?
- From: email@hidden
- Date: Tue, 27 Jun 2006 11:07:16 +1000
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