• 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: DO: Setting Protocol before leaving server...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DO: Setting Protocol before leaving server...


  • Subject: Re: DO: Setting Protocol before leaving server...
  • From: Shaun Wexler <email@hidden>
  • Date: Thu, 9 Oct 2003 03:46:40 -0700

On Oct 8, 2003, at 11:44 AM, Joshua Orr wrote:

Is there any way to set the objects protocol before it leaves the server to
the client, so that the clients proxy object at the client has the protocol
set without the client having to do anything?

Or do you always have to set the protocol explicitly at the receiving end?

It is not required to set the protocol at the receiving end; each message to an "unknown" method will require an extra round trip the first time it is called. Setting a protocol eliminates this.

If you want to set the protocol on the server side, you can vend an instance of NSProtocolChecker your root object, instead. This will filter out all messages sent to the server which don't comply with the protocol, whereas setting a protocol "hint" on the client side does not prevent you from sending any arbitrary message you wish. It's for efficiency.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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.
  • Follow-Ups:
    • Re: DO: Setting Protocol before leaving server...
      • From: Georg Tuparev <email@hidden>
References: 
 >DO: Setting Protocol before leaving server... (From: Joshua Orr <email@hidden>)

  • Prev by Date: Re: receiving all network traffic for a process?
  • Next by Date: Re: receiving all network traffic for a process?
  • Previous by thread: Re: DO: Setting Protocol before leaving server...
  • Next by thread: Re: DO: Setting Protocol before leaving server...
  • Index(es):
    • Date
    • Thread