Change the timeout of the flow. Data that is sent may remain un-acked for up to a given number of seconds before the connection is terminated and a timeout is reported to the application.
neat_change_timeout(struct neat_ctx *ctx, struct neat_flow *flow,
unsigned int seconds);
- ctx: Pointer to a NEAT context.
- flow: Pointer to a NEAT flow.
- seconds: The number of seconds after which un-acked data will cause a timeout to be reported.
NEAT_OKif the timeout was successfully changed.
NEAT_ERROR_UNABLEif attempting to use this function on a system other than Linux, or on flow that is not using TCP.
NEAT_ERROR_BAD_ARGUMENTif the timeout value is too large or if the specified flow is not opened.
NEAT_ERROR_IOif NEAT was unable to set the timeout.
Only available on Linux for flows using TCP.