Skip to content
Start free evaluation

pdcomm_gem_equipment_data_state

Function

Reads the counters of the data variable store.

PdcommStatus pdcomm_gem_equipment_data_state(PdcommTcpEndpoint *endpoint, PdcommGemDataState *state)

Declared in: #include <pdcomm_gem_data.h>

Parameters

NameDescription
endpointEquipment endpoint.
stateCaller storage; set state->struct_size first. Known fields are zeroed before the endpoint is inspected.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when state is NULL or too small, or endpoint is NULL; #PDCOMM_BACKPRESSURE when a TCP event is staged; #PDCOMM_INVALID_STATE when the endpoint is not an Equipment or has no data store; #PDCOMM_POISONED when the endpoint is poisoned.