• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Remote Methods > Why Use Calls?

9.1. Why Use Calls?

Chapter 5 and Chapter 8 already showed you examples of using the send( ) method to call remote methods:

  • NetStream.send( ) and Stream.send( ) invoke a method on all the clients that are playing that net stream. Furthermore, the method call can be buffered and saved as part of the stream itself, allowing the creation of powerful recording and playback interfaces (see Chapter 15). Chapter 5 provides details on how to use this particular type of RMI.

  • Conversely, the SharedObject.send( ) command invokes a method on all the clients connected to that shared object. This can be used to invoke a method on a subset of your clients (the ones connected to a particular shared object). Chapter 8 includes an example of how to use this type of RPC.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint