Homework 1 forum

BroadcastMessage() and FLIPPED COIN

 
Picture of Sacha Adrien Bartholmé
BroadcastMessage() and FLIPPED COIN
by Sacha Adrien Bartholmé - Monday, 19 October 2020, 18:28
 

Hello,

I have 2 questions:

  • What is the purpose of the function BroadcastMessage(GossipPacket) of the BaseGossiper interface ? I did not find anything in the specs.
  • At some point we should print to the standard output "FLIPPED COIN sending rumor to". But what comes after the "to" ? The IP address or the name of the peer ? Or nothing ?

Sacha

Picture of Pasindu Nivanthaka Tennage
Re: BroadcastMessage() and FLIPPED COIN
by Pasindu Nivanthaka Tennage - Tuesday, 20 October 2020, 13:51
 

Hello,

Thank you for the question.

BroadcastMessage(GossipPacket) of the BaseGossiper interface is where you should implement the simple broadcast functionality that we asked you in homework 0. While we do not grade this behavior in the HW1 tests, we highly advise you to build on top of your HW0 implementation.


Hope this helps

Picture of Olivér Facklam
Re: BroadcastMessage() and FLIPPED COIN
by Olivér Facklam - Friday, 23 October 2020, 19:38
 

Hello,

I'm still a bit confused about BroadcastMessage(). I thought the simple broadcast functionality from hw0 that you are describing should go into AddSimpleMessage(). Did I misunderstand something ?

Best,

Olivér