diff options
author | Patrick Simianer <p@simianer.de> | 2015-06-24 18:51:14 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-06-24 18:51:14 +0200 |
commit | 47ed3381713f0e0e375dd6087bbd507ee22bf7cc (patch) | |
tree | 7ef55510754af718c61965cacc9487021d8f421a /training/dtrain/feed1.rb | |
parent | 74bdfce7e86d69f1a03ad1dcdf4711838285f529 (diff) |
dtrain_net_interace: cleanup
Diffstat (limited to 'training/dtrain/feed1.rb')
-rwxr-xr-x | training/dtrain/feed1.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/training/dtrain/feed1.rb b/training/dtrain/feed1.rb deleted file mode 100755 index a76e4c1e..00000000 --- a/training/dtrain/feed1.rb +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env ruby - -require 'nanomsg' - -#port = ARGV[0] -port = 60667 -sock = NanoMsg::PairSocket.new -addr = "tcp://127.0.0.1:#{port}" -#addr = "ipc:///tmp/xxx.ipc" -sock.bind addr - -#puts sock.recv -while true - line = STDIN.gets - if !line - sock.send 'shutdown' - break - end - sock.send line.strip - sleep 1 - puts "got translation: #{sock.recv}\n\n" - #sock.send "a=1 b=2" -end - |