• 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: Clarification: DO and client identification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clarification: DO and client identification?


  • Subject: Re: Clarification: DO and client identification?
  • From: Brian Webster <email@hidden>
  • Date: Sat, 16 Feb 2002 14:36:03 -0600

On Saturday, February 16, 2002, at 01:31 PM, cocoa-dev-
email@hidden wrote:

is there any way to identify which client sent a DO message which is just
being served? I would be grateful even for a negative answer from someone who
knows DO well (so that I know I should not vaste time in searching for a
non-existing solution ;)

Well, I'm not a DO expert, but I'll give it a shot. :)

The idea I had goes something like this. When your client first makes the connection to your server, if you could modify the proxy that gets created, via a subclass or category or something, you might be able to use it to keep track of which client is sending a message. For instance, you could have the proxy send a message to the server beforehand that says "you're about to receive a message from client #3", and then when you send the message, the server will know which client it came from. Of course, this will probably require some sort of locking-type mechanism to make sure nothing happens between the client notifying the server of the pending message and the message itself arriving. It also probably wouldn't work very well with asychronous messaging. It also not might work at all, but it could be fun to try. :)

The other alternative would be to just change your server's protocol so that every message takes a 'sender' argument. Dirty, but quick.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Open/Save into packages?
  • Next by Date: Re: NSUserDefaults stickyness
  • Previous by thread: Re: NSDistributedNotificationCenter
  • Next by thread: Hiding and showing a window
  • Index(es):
    • Date
    • Thread