From f4149b0500b8011c58cd3f5acbb4225dd79e8b85 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 20 Apr 2012 08:46:17 +0200 Subject: Documentation for survey pattern added Signed-off-by: Martin Sustrik --- doc/xs_setsockopt.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc/xs_setsockopt.txt') diff --git a/doc/xs_setsockopt.txt b/doc/xs_setsockopt.txt index d636c83..4ac59a9 100644 --- a/doc/xs_setsockopt.txt +++ b/doc/xs_setsockopt.txt @@ -361,6 +361,20 @@ Default value:: 0 (false) Applicable socket types:: all, when using TCP transport. +XS_SURVEY_TIMEOUT: Sets the deadline for the survey +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Specifies how long to wait for responses to the survey. After the interval +expires, any firther calls to xs_recv() will return EAGAIN error. All the +responses received later on will be silently discarded. Value of -1 means +infinite. + +[horizontal] +Option value type:: int +Option value unit:: milliseconds +Default value:: -1 (infinite) +Applicable socket types:: XS_SURVEYOR + RETURN VALUE ------------ The _xs_setsockopt()_ function shall return zero if successful. Otherwise it -- cgit v1.2.3