mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Move the functions and variables in Net.h to the zeek::net namespace. This includes moving network_time out of util.h.
This commit is contained in:
parent
ca9baec6e8
commit
e7c6d51ae7
55 changed files with 461 additions and 374 deletions
|
@ -16,6 +16,8 @@
|
|||
ZEEK_FORWARD_DECLARE_NAMESPACED(CompositeHash, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Frame, zeek::detail);
|
||||
|
||||
namespace zeek::net { extern double network_time; }
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
class StmtList;
|
||||
|
@ -51,7 +53,7 @@ public:
|
|||
|
||||
ForStmt* AsForStmt();
|
||||
|
||||
void RegisterAccess() const { last_access = network_time; access_count++; }
|
||||
void RegisterAccess() const { last_access = zeek::net::network_time; access_count++; }
|
||||
void AccessStats(ODesc* d) const;
|
||||
uint32_t GetAccessCount() const { return access_count; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue