Sha256: fda35d4efeedecacac0dc9954c9cce8ce75c4e7af87eeae7ee6305044d252888
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'polyphony' require 'polyphony/extensions/backtrace' socket = Polyphony::Net.tcp_connect('127.0.0.1', 1234) writer = spin do while (data = gets) socket << data end end spin do while (data = socket.readpartial(8192)) STDOUT << 'received: ' + data end writer.interrupt end suspend
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polyphony-0.23 | examples/io/echo_client_from_stdin.rb |