mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00

The receiver side will wrap the data as a Broker::Data value, which can then be type-checked/cast via 'is' or 'as' operators to a specific Bro type. For example: Sender: Broker::publish("topic", my_event, "hello") Receiver: event my_event(arg: any) { if ( arg is string ) print arg as string; }
12 lines
574 B
Text
12 lines
574 B
Text
receiver added peer: endpoint=127.0.0.1 msg=handshake successful
|
|
is_remote should be T, and is, T
|
|
receiver got ping: my-message, 1
|
|
is_remote should be T, and is, T
|
|
receiver got ping: my-message, 2
|
|
is_remote should be T, and is, T
|
|
receiver got ping: my-message, 3
|
|
is_remote should be T, and is, T
|
|
receiver got ping: my-message, 4
|
|
is_remote should be T, and is, T
|
|
receiver got ping: my-message, 5
|
|
[num_peers=1, num_stores=0, num_pending_queries=0, num_events_incoming=5, num_events_outgoing=4, num_logs_incoming=0, num_logs_outgoing=1, num_ids_incoming=0, num_ids_outgoing=0]
|