mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +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.
10 lines
429 B
Text
10 lines
429 B
Text
peer added
|
|
sender got pong: my-message, myfunc\x0a{ \x0aprint fmt(bodiesdontsend(%s), c);\x0a}
|
|
bodiesdontsend(1)
|
|
sender got pong: my-message, myfunc\x0a{ \x0aprint fmt(bodiesdontsend(%s), c);\x0a}
|
|
bodiesdontsend(2)
|
|
sender got pong: my-message, myfunc\x0a{ \x0aprint fmt(bodiesdontsend(%s), c);\x0a}
|
|
bodiesdontsend(3)
|
|
sender got pong: my-message, myfunc\x0a{ \x0aprint fmt(bodiesdontsend(%s), c);\x0a}
|
|
bodiesdontsend(4)
|
|
peer lost
|