Sha256: 63f30eab400e4b336ee267839ed57206bc191dc332a6c5576327cebcaa10fd75
Contents?: true
Size: 544 Bytes
Versions: 5
Compression:
Stored size: 544 Bytes
Contents
# encoding: utf-8 require File.expand_path("../../helper.rb", __FILE__) class TestRepSocket < ZmqTestCase def test_behavior ctx = ZMQ::Context.new sock = ctx.socket(:REP) assert_equal ZMQ::REP, sock.type assert_equal "REP socket", sock.to_s ensure ctx.destroy end def test_flow ctx = ZMQ::Context.new sock = ctx.socket(:REP) sock.bind("inproc://test.rep-sock-flow") assert_raises ZMQ::Error do sock.send_frame(ZMQ::Frame("frame"), ZMQ::Frame::MORE) end ensure ctx.destroy end end
Version data entries
5 entries across 5 versions & 1 rubygems