Class: NNQ::SURVEYOR0
Overview
SURVEYOR (nng surveyor0): broadcast side of the survey pattern. Sends a survey to all connected respondents, then collects replies within a timed window (‘options.survey_time`, default 1s).
Only one outstanding survey at a time — sending a new survey abandons the previous one. Respondents are not obliged to reply.
Instance Attribute Summary
Attributes inherited from Socket
Instance Method Summary collapse
-
#receive ⇒ String
Receives the next reply.
-
#send_survey(body) ⇒ Object
Broadcasts
bodyas a survey to all connected respondents.
Methods inherited from Socket
#all_peers_gone, bind, #bind, #close, #close_read, connect, #connect, #connection_count, #frozen_binary, #initialize, #last_endpoint, #monitor, #peer_connected, #raw?, #reconnect_enabled, #reconnect_enabled=
Constructor Details
This class inherits a constructor from NNQ::Socket