Skip to content
Start free evaluation

pdcomm_gem_program_state

Function

Reads the usage of the program store.

PdcommStatus pdcomm_gem_program_state(PdcommTcpEndpoint *endpoint, PdcommGemProgramState *state)

Declared in: #include <pdcomm_gem_programs.h>

Parameters

NameDescription
endpointEndpoint with a program store.
stateCaller storage with struct_size set; cleared first and filled on success.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when state is NULL or too small, or endpoint is NULL; #PDCOMM_INVALID_STATE when no program store is configured; #PDCOMM_BACKPRESSURE when a staged TCP event is pending; #PDCOMM_POISONED after a contained panic.