Add GPL v2 (same license as LWES)
[lwes-ruby.git] / testing / emit.rb
blob30e3c3f4c7918da744ccf640c17716363b02da80
1 require 'lwes_functions'
3 event = Event.new("sample.esf", "Testing");
4 event.set_str("aString", "garbage");
5 event.set_bool("aBoolean", 1);
6 event.set_uint16("aUInt16", 2);
7 event.set_int16("anInt16", 3);
8 emitter = Emitter.new("224.1.1.11", "0.0.0.0", 12345, 1, 1);
9 emitter.emit(event);