Sha256: 6d127e42bdc882049c11a93c99c16a921d74756e06508beaf070d06873b3e8e1
Contents?: true
Size: 459 Bytes
Versions: 8
Compression:
Stored size: 459 Bytes
Contents
#!/usr/bin/env ruby require 'zmachine/zmq_channel' include ZMachine server = ZMQChannel.new(ZMQ::REP) #server.bind("tcp://0.0.0.0:12345") server.bind("inproc://x") client = ZMQChannel.new(ZMQ::REQ) #client.connect("tcp://0.0.0.0:12345") client.connect("inproc://x") data = ("x" * 2048).to_java_bytes loop do client.send_data([data]) received = server.read_inbound_data.first puts received server.send_data([data]) client.read_inbound_data end
Version data entries
8 entries across 8 versions & 1 rubygems