Class: EZMQ::Client
Overview
Request socket that sends messages and receives replies.
Instance Attribute Summary
Attributes inherited from Socket
#context, #decode, #encode, #socket
Instance Method Summary (collapse)
-
- (Client) initialize(**options)
constructor
Creates a new Client socket.
-
- (void) request(message = '', encode: @encode, decode: @decode)
Sends a message and waits to receive a response.
Methods inherited from Socket
#bind, #connect, #receive, #send
Constructor Details
- (Client) initialize(**options)
Creates a new Client socket.
125 126 127 |
# File 'lib/ezmq.rb', line 125 def initialize(**) super :connect, ZMQ::REQ, end |
Instance Method Details
- (void) request(message = '', encode: @encode, decode: @decode)
This method returns an undefined value.
Sends a message and waits to receive a response.
137 138 139 140 |
# File 'lib/ezmq.rb', line 137 def request( = '', encode: @encode, decode: @decode) send , encode: encode receive decode: decode end |