hyparview v0.1.4 Hyparview.Messages.ShuffleReply View Source

SHUFFLEREPLY message abstraction module

Link to this section Summary

Functions

A ShuffleReply message that includes a number of nodes selected at random from q’s passive view equal to the number of nodes received in the Shuffle request

Send a SHUFFLEREPLY message to the SHUFFLE sender

Link to this section Types

Link to this type t() View Source
t() :: %Hyparview.Messages.ShuffleReply{
  nodes: MapSet.t(Node.t()),
  sender: Node.t()
}

Link to this section Functions

Link to this function handle(shuffle_reply, view) View Source
handle(t(), Hyparview.View.t()) :: Hyparview.View.t()

A ShuffleReply message that includes a number of nodes selected at random from q’s passive view equal to the number of nodes received in the Shuffle request.

shuffle_reply = ShuffleReply.new(view: state.view, shuffle: Shuffle.new())
Link to this function send!(shuffle_reply, shuffle_sender) View Source

Send a SHUFFLEREPLY message to the SHUFFLE sender

:ok = ShuffleReply.send!(shuffle_reply, :"node1@127.0.0.1")