Sha256: f2b03e7c2bcda2ba690b62bc0d928c4c42f805004db45643a1b629b587773395
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
require 'aggro/nanomsg_transport/connection' module Aggro module NanomsgTransport # Private: Wrapper for a nanomsg PUB node. class Publish < Connection def allocate_socket @socket = NNCore::LibNanomsg.nn_socket(NNCore::AF_SP, NNCore::NN_PUB) assert @socket end def set_endpoint assert NNCore::LibNanomsg.nn_bind(@socket, @endpoint) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aggro-0.0.3 | lib/aggro/nanomsg_transport/publish.rb |
aggro-0.0.2 | lib/aggro/nanomsg_transport/publish.rb |