1NN_SURVEY(7)                     nanomsg 1.1.5                    NN_SURVEY(7)
2
3
4

NAME

6       nn_survey - survey scalability protocol
7

SYNOPSIS

9       #include <nanomsg/nn.h>
10
11       #include <nanomsg/survey.h>
12

DESCRIPTION

14       Allows to broadcast a survey to multiple locations and gather the
15       responses.
16
17   Socket Types
18       NN_SURVEYOR
19           Used to send the survey. The survey is delivered to all the
20           connected respondents. Once the query is sent, the socket can be
21           used to receive the responses. When the survey deadline expires,
22           receive will return ETIMEDOUT error.
23
24       NN_RESPONDENT
25           Use to respond to the survey. Survey is received using receive
26           function, response is sent using send function. This socket can be
27           connected to at most one peer.
28
29   Socket Options
30       NN_SURVEYOR_DEADLINE
31           Specifies how long to wait for responses to the survey. Once the
32           deadline expires, receive function will return ETIMEDOUT error and
33           all subsequent responses to the survey will be silently dropped.
34           The deadline is measured in milliseconds. Option type is int.
35           Default value is 1000 (1 second).
36

SEE ALSO

38       nn_bus(7) nn_pubsub(7) nn_reqrep(7) nn_pipeline(7) nn_pair(7)
39       nanomsg(7)
40

AUTHORS

42       Martin Sustrik <sustrik@250bpm.com>
43
44
45
46                                  2023-01-19                      NN_SURVEY(7)
Impressum