Skip to content
Start free evaluation

pdcomm_gem_spool_request_data

Function

Sends an S6F23 request spooled data (Host).

PdcommStatus pdcomm_gem_spool_request_data(PdcommTcpEndpoint *endpoint, uint32_t command, PdcommTcpToken *token)

Declared in: #include <pdcomm_gem_spooling.h>

The Equipment answers with S6F24 (RSDA 0 accepted, 1 busy, 2 no spooled data), delivered as a #PDCOMM_GEM_SPOOL_CONTROL_ACK result. After an accepted transmit request, spooled messages arrive as ordinary primaries.

Parameters

NameDescription
endpointCommunicating endpoint configured as GEM Host with spool limits.
commandRSDC: #PDCOMM_GEM_SPOOL_TRANSMIT or #PDCOMM_GEM_SPOOL_PURGE.
tokenReceives the request token; zero after every failure. Must not be NULL.

Returns

#PDCOMM_OK when the request was queued; #PDCOMM_INVALID_ARGUMENT when token or endpoint is NULL or command is unknown; #PDCOMM_INVALID_STATE when spool Host limits are not configured or GEM is not Communicating; #PDCOMM_BACKPRESSURE when a staged TCP event is pending or no pending slot is free; #PDCOMM_LIMIT_EXCEEDED, #PDCOMM_ALLOCATION_FAILED, a TCP status, or #PDCOMM_POISONED.