bin/dyn-cli in dyndoc-ruby-0.6.0 vs bin/dyn-cli in dyndoc-ruby-0.6.1

- old
+ new

@@ -19,11 +19,15 @@ dyndoc_cmd="dyndoc" dyndoc_cmd += "_with_tag_tmpl" if reinit.include? :dyndoc_tag_tmpl dyndoc_cmd += "_with_libs_reinit" if reinit.include? :dyndoc_libs dyndoc_cmd += "_with_layout_reinit" if reinit.include? :dyndoc_layout - Socket.tcp(addr, 7777) {|sock| - sock.print '__send_cmd__[['+dyndoc_cmd+'|'+@tmpl_filename+']]__' + @cmd + @@end_token +#p [:addr,@addr] + Socket.tcp(@addr, @port) {|sock| + msg='__send_cmd__[['+dyndoc_cmd+'|'+@tmpl_filename+']]__' + @cmd + @@end_token + #p msg + sock.print msg + #sleep 1 sock.close_write @result=sock.read } data=@result.split(@@end_token,-1)