<NME> indexer.rb
<BEF> ADDFILE
<MSG> - When setting message values, always strip upper ascii (byte >= 128) values
  because JSON.dump assumes UTF-8
- server: when we decode a message, if we have a handler for <msgname>Handler,
  we should call that handler with the message as an argument.


<DFF> @@ -0,0 +1,17 @@
+
+require 'rubygems'
+require 'lib/net/message'
+require 'lib/net/server'
+require 'lib/net/messages/indexevent'
+
+module LogStash; module Net; module Servers
+  class Indexer < LogStash::Net::MessageServer
+    def initialize(addr="0.0.0.0", port=3001)
+      super(addr, port)
+    end
+
+    def IndexEventRequestHandler(request)
+      puts "IER: #{request.inspect}"
+    end
+  end # Indexer
+end; end; end # LogStash::Net::Server

- When setting message values, always strip upper ascii (byte >= 128) values   because JSON.dump assumes UTF-8 - server: when we decode a message, if we have a handler for <msgname>Handler,   we should call that handler with the message as an argument.