1 / 38

Chapter 4: More Than Two

Chapter 4: More Than Two. BOIDS. SIMPLE PEER TO PEER. PEER TO PEER WITH MASTER. Host E. Host E. Host E. Host E. Host D. Host D. Host D. Host D. Host A. Host A. Host A. Host A. Host C. Host C. Host C. Host C. Host B. Host B. Host B. Host B. code(Flock flock).

koko
Download Presentation

Chapter 4: More Than Two

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 4: More Than Two

  2. BOIDS

  3. SIMPLE PEER TO PEER

  4. PEER TO PEER WITH MASTER

  5. Host E Host E Host E Host E Host D Host D Host D Host D Host A Host A Host A Host A Host C Host C Host C Host C Host B Host B Host B Host B

  6. code(Flock flock) create Announce message send message to master host Inactive Active code(Flock flock) create State message send message to every participating host

  7. decode(String str) and Announce message extract flock from received str add FlockRemoteFlag to the Datamodel add FlockRemoteFlag to the Renderer create an Announce message for local flock send the created Announce message to the remote host for each registered remote flock { send the received Announce to remote flock create Announce message for remote flock send created Announce message to sender of flock } decode(String str) and Announce message extract flock from received str add FlockRemoteFlag to the Datamodel add FlockRemoteFlag to the Renderer Inactive/Active Inactive/Active decode(String str) and State message extract flock identifier from received str retrieve FlockRemoteFlag from Datamodel update FlockRemote from data on str decode(String str) and State message extract flock identifier from received str retrieve FlockRemoteFlag from Datamodel update FlockRemote from data on str

  8. PEER TO PEER WITH RENDEZVOUS

  9. Host A Host A Host A Host A Host A Host A Host B Host B Host B Host B Host B Host B Host C Host C Host C Host C Host C Host C Rendez vous Server Rendez vous Server Rendez vous Server Rendez vous Server Rendez vous Server Rendez vous Server

  10. decode(String str) and Announce message extract flock from received str add FlockRemoteFlag to the Datamodel add FlockRemoteFlag to the Renderer code(Flock flock) create Announce message send message to server Inactive/Active Inactive Active code(Flock flock) decode(String str) and State message create State message send message to server extract flock identifier from received str retrieve FlockRemoteFlag from Datamodel update FlockRemote from data on str

  11. receive() and Announce message extract flock from received str add FlockRemote to the datamodel for each registered remote flock { send the received Announce to remote flock create Announce message for remote flock send created Announce message to sender of flock } Inactive/Active

  12. CLIENT/SERVER

  13. Host A Host A Host A Host A Host A Host A Host B Host B Host B Host B Host B Host B Host C Host C Host C Host C Host C Host C Server Server Server Server Server Server

  14. decode(String str) and Announce message extract flock from received str add Flock to the Datamodel add Flock to the Renderer code(Flock flock) create Announce message send message to rendezvous server Inactive/Active Inactive Active code(Flock flock) decode(String str) and State message create State message send message to every participating host extract flock identifier from received str retrieve Flock from Datamodel update Flock from data on str

  15. decode(String str) and Announce message extract flock from received str add FlockRemote to the Datamodel for each registered remote flock { create stripped version of the received Announce send the stripped Announce to remote flock create Announce message for remote flock send created Announce message to sender of flock } Inactive/Active decode(String str) and State message extract flock identifier from received str for each registered remote flock that is not the sender { send the received State to remote flock }

  16. MULTICAST

  17. Host E Host E Host E Host E Host D Host D Host D Host D Host A Host A Host A Host A Host C Host C Host C Host C Host B Host B Host B Host B

  18. code(Flock flock) Joined Inactive create Announce message send message to multicast group code(Flock flock) join multicast group Active Inactive code(Flock flock) create State message send message to multicast group

  19. decode(String str) and Announce message extract flock from received str add Flock to the Datamodel add Flock to the Renderer Inactive/Active decode(String str) and State message extract flock identifier from received str retrieve Flock from Datamodel update Flock from data on str

  20. SUMMARY

More Related