pdcomm_gem_configure_spool_host
Function
Enables Host spooling requests and sets their limits.
PdcommStatus pdcomm_gem_configure_spool_host(PdcommTcpEndpoint *endpoint, const PdcommGemSpoolHostOptions *options)Call once while the endpoint is stopped, after pdcomm_gem_configure_host(). The Host stores only these request limits; it keeps no spool.
Parameters
| Name | Description |
|---|---|
endpoint | Stopped endpoint configured as GEM Host. |
options | Request limits; version must be #PDCOMM_GEM_SPOOL_OPTIONS_VERSION and reserved 0. |
Returns
#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when endpoint or options is NULL, struct_size is too small, or version or reserved is wrong; #PDCOMM_INVALID_STATE when the endpoint is not stopped, is not a GEM Host, or is already configured for spooling; #PDCOMM_BACKPRESSURE when a staged TCP event is pending; #PDCOMM_POISONED after a contained panic.