class Pantry::Communication::SendSocket
The SendSocket
allows one-way asynchronous communication to the server. This is implemented through the ZMQ DEALER socket, which communicates with the Server’s ROUTER socket.
Public Instance Methods
build_socket()
click to toggle source
# File lib/pantry/communication/send_socket.rb, line 9 def build_socket Celluloid::ZMQ::DealerSocket.new end
open_socket(socket)
click to toggle source
# File lib/pantry/communication/send_socket.rb, line 13 def open_socket(socket) socket.connect("tcp://#{host}:#{port}") end