Skip to content
Start free evaluation

PdcommTcpState

Struct

Endpoint state snapshot, filled by pdcomm_tcp_state().

typedef struct PdcommTcpState { ... } PdcommTcpState

Declared in: #include <pdcomm_tcp.h>

Members

closed

Field

1 when a stopped endpoint has finished closing, otherwise 0.

uint8_t closed

Declared in: #include <pdcomm_tcp.h>

It 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_id

Declared in: #include <pdcomm_tcp.h>

generation

Field

Current connection generation; 0 before the first start.

uint64_t generation

Declared in: #include <pdcomm_tcp.h>

state

Field

Current HSMS state, one of the PDCOMM_TCP_* state values such as #PDCOMM_TCP_SELECTED.

uint32_t state

Declared in: #include <pdcomm_tcp.h>

struct_size

Field

Structure size in bytes.

size_t struct_size

Declared in: #include <pdcomm_tcp.h>

Set it to sizeof(PdcommTcpState) or larger before the call. On success the library stores the size of the layout it wrote.