mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00

anonymous-functions, their closures, can now be sent over broker. In order to send an anonymous function the receiver must have parsed a definition of the functon, but it need not to have been evaluated. See testing/btest/language/closure-sending.zeek for an example of how this can be done. This also sends their closures as well as the closures of regular functions.
11 lines
451 B
Text
11 lines
451 B
Text
peer added
|
|
receiver got ping: my-message, myfunc\x0a{ \x0aprint fmt(myfunc(%s), c);\x0a}
|
|
myfunc(1)
|
|
receiver got ping: my-message, myfunc\x0a{ \x0aprint fmt(myfunc(%s), c);\x0a}
|
|
myfunc(2)
|
|
receiver got ping: my-message, myfunc\x0a{ \x0aprint fmt(myfunc(%s), c);\x0a}
|
|
myfunc(3)
|
|
receiver got ping: my-message, myfunc\x0a{ \x0aprint fmt(myfunc(%s), c);\x0a}
|
|
myfunc(4)
|
|
receiver got ping: my-message, myfunc\x0a{ \x0aprint fmt(myfunc(%s), c);\x0a}
|
|
myfunc(5)
|