diff options
author | Patrick Simianer <p@simianer.de> | 2015-06-24 20:28:27 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-06-24 20:28:27 +0200 |
commit | 22ea76bc189f866e716d4d8a8755151714198ec8 (patch) | |
tree | 29bf88101aa8de2cc02838e4d96ae6f39d448b35 /word-aligner/feed.rb | |
parent | 723cbf8d543ba8be2880b497518c87fc1cbf3573 (diff) |
net_fa: cleanup
Diffstat (limited to 'word-aligner/feed.rb')
-rwxr-xr-x | word-aligner/feed.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/word-aligner/feed.rb b/word-aligner/feed.rb deleted file mode 100755 index 6aa80d95..00000000 --- a/word-aligner/feed.rb +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env ruby - -require 'nanomsg' - -port = 60666 -sock = NanoMsg::PairSocket.new -addr = "tcp://127.0.0.1:#{port}" -#addr = "ipc:///tmp/network_decoder.ipc" -sock.connect addr - -while true - line = STDIN.gets - if !line || line.strip=='shutdown' - puts "shutting down" - sock.send 'shutdown' - break - end - puts "sending '#{line.strip}'" - sock.send line.strip - sleep 1 - puts "got alignment: #{sock.recv}\n\n" -end - |