class Pantry::Communication::ReceiveSocket
The ReceiveSocket
receives communication from Clients via the Dealer / Router socket pair. This class is the Server’s Router side.
Public Instance Methods
build_socket()
click to toggle source
# File lib/pantry/communication/receive_socket.rb, line 8 def build_socket Celluloid::ZMQ::RouterSocket.new end
has_source_header?()
click to toggle source
# File lib/pantry/communication/receive_socket.rb, line 16 def has_source_header? true end
open_socket(socket)
click to toggle source
# File lib/pantry/communication/receive_socket.rb, line 12 def open_socket(socket) socket.bind("tcp://#{host}:#{port}") end