Skip to main content
Version: Dev (main)

QarOnboardPeerIdExt Struct

Extension: join the session under a peer id chosen by the caller. More...

Declaration​

struct QarOnboardPeerIdExt { ... }

Included Headers​

Public Member Attributes Index​

QarStructureHeaderheader
QarPeerIdpeer_id

Required; a zero id is rejected. More...

Description​

Extension: join the session under a peer id chosen by the caller.

Deprecated

A local app gets its peer id from the hub, remembered per app tag (QarOnboardLocalAppTagExt), and a co-process from its invite. Kept working for applications that already use it.

Chain into QarOnboardInit.header.next, next to QarOnboardCodeExt or QarOnboardInviteExt, for a process whose peer id was planned and announced to the session by someone else, so the process must appear under that id.

  • Absent: the process takes the peer id the hub bound to the code or invite (a co-process invite always carries one), else a fresh one.
  • Present: it must equal any peer id the hub bound to the code or invite; a different id fails onboarding.
  • Refused with QarOnboardLocalAppExt, which gets its peer id from the hub (QAR_STATUS_ARGUMENT_NOT_SUPPORTED). The id is persisted with the slot, so a later rejoin keeps it.

Definition at line 1942 of file qar_streaming.h.

Public Member Attributes​

header​

QarStructureHeader QarOnboardPeerIdExt::header

QAR_STRUCTURE_TYPE_RUNTIME_ONBOARD_PEER_ID_EXT

Definition at line 1945 of file qar_streaming.h.

peer_id​

QarPeerId QarOnboardPeerIdExt::peer_id

Required; a zero id is rejected.

Definition at line 1947 of file qar_streaming.h.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.2.1 by Doxygen 1.9.8.