Class CanvasSyncMessage

java.lang.Object
pt.unl.fct.di.novasys.babel.generic.ProtoMessage
protocols.apps.canvas.messages.CanvasSyncMessage

public class CanvasSyncMessage extends pt.unl.fct.di.novasys.babel.generic.ProtoMessage
A point-to-point canvas snapshot exchange, sent directly to one peer (not broadcast) over HyParView's shared channel via sendMessage. Two kinds:
  • CanvasSyncMessage.Kind.REQUEST — "send me your current canvas", sent by a node once it has joined the overlay so a late joiner sees existing art immediately instead of waiting for new gossip;
  • CanvasSyncMessage.Kind.REPLY — the responding peer's full set of winning PaintOps, which the requester merges under last-writer-wins.

This rides HyParView's channel specifically (not eager-push's): the peers a NeighborUp reports are HyParView active-view members, reachable on that channel without any port translation — so the Host from the notification is exactly the sendMessage destination.