Class: MessagePack::RPC::UDPServerTransport::ResponseSender
- Inherits:
-
Object
- Object
- MessagePack::RPC::UDPServerTransport::ResponseSender
- Defined in:
- lib/msgpack/rpc/transport/udp.rb
Instance Method Summary collapse
-
#initialize(io, host, port) ⇒ ResponseSender
constructor
A new instance of ResponseSender.
-
#send_data(data) ⇒ Object
MessageSendable interface.
Constructor Details
#initialize(io, host, port) ⇒ ResponseSender
Returns a new instance of ResponseSender.
183 184 185 186 187 |
# File 'lib/msgpack/rpc/transport/udp.rb', line 183 def initialize(io, host, port) @io = io @host = host @port = port end |
Instance Method Details
#send_data(data) ⇒ Object
MessageSendable interface
190 191 192 |
# File 'lib/msgpack/rpc/transport/udp.rb', line 190 def send_data(data) @io.send(data, 0, @host, @port) end |