Nebula
Protocol

PortalHandoffMsg

MsgId.PortalHandoff (docs/portals.md D44, D45): the links of one portal, sent by the worker that is releasing the portal's near container to the worker that is taking it, together with the release.

generated from the sources
public struct PortalHandoffMsg

MsgId.PortalHandoff (docs/portals.md D44, D45): the links of one portal, sent by the worker that is releasing the portal's near container to the worker that is taking it, together with the release. Nothing else about a link needs to travel: its far scope and its readiness are worked out again from the portal's own content and the leases.

Fields

PortalId

public ulong PortalId;

The portal's derived id (PortalIds.Of).

NearContainerId

public string NearContainerId;

The container the near face is fixed in, by id, for the log line when the receiver never holds the portal.

public List<PortalHandoffLink> Links;

One entry for each party that ever opened the portal, whatever state its link is in.

Methods

Write

public void Write(NetworkWriter w);

Write the message, id byte first.

Read

public static PortalHandoffMsg Read(NetworkReader r);

Read the body after the id byte.

On this page