QarRequestInviteInit Struct
Mint a co-process invite: a one-time invite for a process this app starts on the same PC (a companion in another language, a helper process). More...
Declaration
Included Headers
Public Member Attributes Index
| const char * | app_tag |
| QarStructureHeader | header |
Description
Mint a co-process invite: a one-time invite for a process this app starts on the same PC (a companion in another language, a helper process).
The hub binds the invite to the peer id it remembers for this session's approval and app_tag (see QarOnboardLocalAppTagExt), so the co-process joins as the same peer on every start while no other live process holds that id.
- Only a session joined by local enrollment (QarOnboardLocalAppExt), or a process the QAROS launcher started, may request one.
- The invite works for every start of the co-process while this session lives: it names this app on this PC, not the hub, and onboarding with it asks this app for a fresh one-time hub invite on each attempt. It reaches nobody beyond this user on this PC and does not expire on its own. The co-process's onboarding tries again (250 ms doubling to 5 s) while this app or the hub is away, and fails at once only for what no retry changes (a forged invite, the approval denied, this session gone): bound it with a cancel token. A platform without a local endpoint for this app gets the hub's invite instead: single use, valid for 60 s.
- The co-process gets the short local certificate profile under this app's approval; its certificate renews only while the requesting session is still in the session, and revoking the approval revokes both.
- The co-process should chain QarRuntimeEphemeralStorageExt so it writes nothing to disk.
An invite for another PC, or for a new device, is not available to apps: pairing codes and unbound invites are minted by the hub's operators.
A struct whose header carries any other structure type, including a retired one (see QarStructureType), is refused with QAR_STATUS_ARGUMENT_NOT_SUPPORTED.
Definition at line 2072 of file qar_streaming.h.
Public Member Attributes
app_tag
|
Required; the co-process's app tag. Same rules as QarOnboardLocalAppTagExt::app_tag. Copied before the call returns.
Definition at line 2078 of file qar_streaming.h.
header
|
QAR_STRUCTURE_TYPE_SESSION_REQUEST_INVITE_INIT
Definition at line 2075 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.