Skip to content
Start free evaluation

pdcomm_gem_equipment_report_state

Function

Reads the counters of an Equipment report store.

PdcommStatus pdcomm_gem_equipment_report_state(PdcommTcpEndpoint *endpoint, PdcommGemReportState *state)

Declared in: #include <pdcomm_gem_reports.h>

Parameters

NameDescription
endpointEquipment endpoint with a report store.
stateCaller storage; set state->struct_size first. It is written only on success.

Returns

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

Notes

  • Thread safety: serialize with every other call on endpoint.