Skip to main content
Version: 0.9.0 (next)

PeerPresence enum

Whether a peer is here, as an application should act on it (C QarPeerPresence). Render for, wait for and count PeerPresence.Online and PeerPresence.Unknown peers (PeerSpec.IsReachable). The hub's own view of the session decides PeerPresence.Online and PeerPresence.Offline; a leave the peer announced decides PeerPresence.Leaving and PeerPresence.Retired.

Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll

public enum PeerPresence

Values​

NameValueDescription
Unknown0The hub has not reconciled the peer yet (an older hub that never does, or one that just started). Nothing says it is gone: treat it like PeerPresence.Online.
Online1The hub sees the peer in the session.
Offline2The hub no longer sees the peer: a crash, a kill, a network loss or a short drop. It reads PeerPresence.Online again once it is back, without doing anything.
Leaving3The peer announced it is leaving (a clean exit); it may come back under its id.
Retired4The peer left for good and never comes back under its id.