mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add timestamps to auto published broker events.
This commit is contained in:
parent
c12640b048
commit
1e807a9f0a
8 changed files with 127 additions and 10 deletions
|
@ -14,6 +14,11 @@
|
|||
namespace zeek
|
||||
{
|
||||
|
||||
namespace run_state
|
||||
{
|
||||
extern double network_time;
|
||||
} // namespace run_state
|
||||
|
||||
class Func;
|
||||
using FuncPtr = IntrusivePtr<Func>;
|
||||
|
||||
|
@ -34,7 +39,7 @@ public:
|
|||
|
||||
void AutoUnpublish(const std::string& topic) { auto_publish.erase(topic); }
|
||||
|
||||
void Call(zeek::Args* vl, bool no_remote = false);
|
||||
void Call(zeek::Args* vl, bool no_remote = false, double ts = run_state::network_time);
|
||||
|
||||
// Returns true if there is at least one local or remote handler.
|
||||
explicit operator bool() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue