Skip to content
Start free evaluation

pdcomm_gem_spool_resync

Function

Retries the parent directory synchronization of a file spool.

PdcommStatus pdcomm_gem_spool_resync(PdcommTcpEndpoint *endpoint)

Declared in: #include <pdcomm_gem_spooling.h>

Use after #PDCOMM_SPOOL_UNCONFIRMED when the application needs confirmed directory synchronization. The call never rewrites the snapshot, sends an acknowledgement, confirms a retained reply, or dequeues an entry.

Parameters

NameDescription
endpointEndpoint with a file-backed Equipment spool.

Returns

#PDCOMM_OK when the directory was synchronized; #PDCOMM_INVALID_STATE for a RAM spool or when no Equipment spool is configured; #PDCOMM_IO_ERROR when synchronization failed; #PDCOMM_BACKPRESSURE when a staged TCP event is pending; #PDCOMM_INVALID_ARGUMENT for a NULL endpoint, or #PDCOMM_POISONED.