PdcommGemState
Struct
GEM state of an endpoint, filled by pdcomm_gem_state() and embedded in ::PdcommGemResultInfo.
typedef struct PdcommGemState { ... } PdcommGemStateMembers
communication
Field
Communication state, one of #PDCOMM_GEM_DISCONNECTED through #PDCOMM_GEM_COMMUNICATING.
uint32_t communicationcontrol
Field
Equipment control state (#PDCOMM_GEM_EQUIPMENT_OFFLINE through #PDCOMM_GEM_ONLINE_REMOTE), or #PDCOMM_GEM_CONTROL_UNAVAILABLE for a host.
uint32_t controlendpoint_id
Field
Identifier of the TCP endpoint, as carried in ::PdcommTcpToken.
uint64_t endpoint_idgeneration
Field
Current connection generation of the TCP endpoint.
uint64_t generationonline_mode
Field
Equipment online mode (#PDCOMM_GEM_LOCAL or #PDCOMM_GEM_REMOTE), or #PDCOMM_GEM_CONTROL_UNAVAILABLE for a host.
uint32_t online_modepending_count
Field
Number of occupied pending-request slots, at most 32.
size_t pending_countIncludes requests retired by a disconnect whose final #PDCOMM_GEM_FAILED result has not been handled yet.
pending_ids
Field
Number of identifiers held by pending requests, counted against max_pending_ids for a host.
size_t pending_idsrole
Field
Configured role: #PDCOMM_GEM_HOST or #PDCOMM_GEM_EQUIPMENT.
uint32_t rolestruct_size
Field
Structure size in bytes.
size_t struct_sizeSet it to sizeof(PdcommGemState) or larger before the call. On success the library stores the size of the layout it wrote.
variable_count
Field
Number of registered status variables; 0 for a host.
size_t variable_count