PdcommTcpState
Struct
Endpoint state snapshot, filled by pdcomm_tcp_state().
typedef struct PdcommTcpState { ... } PdcommTcpStateMembers
closed
Field
1 when a stopped endpoint has finished closing, otherwise 0.
uint8_t closedIt becomes 1 only after pdcomm_tcp_stop() once the connection is closed and internal work is complete; it is 0 before the first stop. It does not mean that every event has been retrieved.
endpoint_id
Field
Process-unique, nonzero identity of the endpoint.
uint64_t endpoint_idgeneration
Field
Current connection generation; 0 before the first start.
uint64_t generationstate
Field
Current HSMS state, one of the PDCOMM_TCP_* state values such as #PDCOMM_TCP_SELECTED.
uint32_t statestruct_size
Field
Structure size in bytes.
size_t struct_sizeSet it to sizeof(PdcommTcpState) or larger before the call. On success the library stores the size of the layout it wrote.