Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
NN_SURVEY(7)			  nanomsg 1.1.5 		    NN_SURVEY(7)

NAME
     nn_survey - survey scalability protocol

SYNOPSIS
     #include <nanomsg/nn.h>

     #include <nanomsg/survey.h>

DESCRIPTION
     Allows  to  broadcast  a  survey  to  multiple locations and gather the re-
     sponses.

   Socket Types
     NN_SURVEYOR
	 Used to send the survey. The survey is delivered to all  the  connected
	 respondents.  Once the query is sent, the socket can be used to receive
	 the responses. When the survey deadline expires,  receive  will  return
	 ETIMEDOUT error.

     NN_RESPONDENT
	 Use  to  respond  to the survey. Survey is received using receive func-
	 tion, response is sent using send function. This  socket  can	be  con-
	 nected to at most one peer.

   Socket Options
     NN_SURVEYOR_DEADLINE
	 Specifies  how long to wait for responses to the survey. Once the dead-
	 line expires, receive function will return ETIMEDOUT error and all sub-
	 sequent responses to the survey will be silently dropped. The	deadline
	 is  measured in milliseconds. Option type is int. Default value is 1000
	 (1 second).

SEE ALSO
     nn_bus(7) nn_pubsub(7) nn_reqrep(7) nn_pipeline(7) nn_pair(7) nanomsg(7)

AUTHORS
     Martin Sustrik <sustrik@250bpm.com>

				   2018-10-15			    NN_SURVEY(7)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=nn_survey&sektion=7&manpath=FreeBSD+Ports+15.1.quarterly>

home | help