hyparview v0.1.4 Hyparview.Messages.NeighborAccepted View Source
NEIGHBOR ACCEPTED message
Link to this section Summary
Functions
If the node receives NeighborAccepted message, insert the sender into its active view
Link to this section Types
Link to this type
t()
View Source
t() :: %Hyparview.Messages.NeighborAccepted{ sender: Node.t(), view: Hyparview.View.t() }
Link to this section Functions
Link to this function
handle(neighbor_accepted, view0)
View Source
handle(t(), Hyparview.View.t()) :: Hyparview.View.t()
If the node receives NeighborAccepted message, insert the sender into its active view.
view = NeighborAccepted.handle(neighbor_accepted, state.view) {:noreply, %{state | view: view}}