mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
broker integration: add Comm::enable function
Works like old enable_communication(), but for new broker communication mechanism. Scripts have to explicitly call this if they want to use the broker communication functionality. Saves a decent chunk of Bros' initialization time when one doesn't need communication features.
This commit is contained in:
parent
0cf982f1d1
commit
4dfec04135
12 changed files with 108 additions and 26 deletions
11
src/main.cc
11
src/main.cc
|
@ -860,12 +860,6 @@ int main(int argc, char** argv)
|
|||
|
||||
#ifdef ENABLE_BROKER
|
||||
comm_mgr = new comm::Manager();
|
||||
|
||||
if ( ! comm_mgr->InitPreScript() )
|
||||
{
|
||||
fprintf(stderr, "Failed to initialize communication manager.");
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
|
||||
plugin_mgr->InitPreScript();
|
||||
|
@ -942,11 +936,6 @@ int main(int argc, char** argv)
|
|||
exit(rc);
|
||||
}
|
||||
|
||||
#ifdef ENABLE_BROKER
|
||||
comm_mgr->InitPostScript();
|
||||
iosource_mgr->Register(comm_mgr, true);
|
||||
#endif
|
||||
|
||||
#ifdef USE_PERFTOOLS_DEBUG
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue