mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Remove RemoteSerializer and related code/types.
Also removes broccoli from the source tree.
This commit is contained in:
parent
ca1b1dd6bb
commit
dcd6454530
55 changed files with 79 additions and 5834 deletions
|
@ -2,7 +2,6 @@
|
|||
#include "EventHandler.h"
|
||||
#include "Func.h"
|
||||
#include "Scope.h"
|
||||
#include "RemoteSerializer.h"
|
||||
#include "NetVar.h"
|
||||
|
||||
#include "broker/Manager.h"
|
||||
|
@ -28,7 +27,6 @@ EventHandler::~EventHandler()
|
|||
EventHandler::operator bool() const
|
||||
{
|
||||
return enabled && ((local && local->HasBodies())
|
||||
|| receivers.length()
|
||||
|| generate_always
|
||||
|| ! auto_publish.empty());
|
||||
}
|
||||
|
@ -73,12 +71,6 @@ void EventHandler::Call(val_list* vl, bool no_remote)
|
|||
|
||||
if ( ! no_remote )
|
||||
{
|
||||
loop_over_list(receivers, i)
|
||||
{
|
||||
SerialInfo info(remote_serializer);
|
||||
remote_serializer->SendCall(&info, receivers[i], name, vl);
|
||||
}
|
||||
|
||||
if ( ! auto_publish.empty() )
|
||||
{
|
||||
// Send event in form [name, xs...] where xs represent the arguments.
|
||||
|
@ -179,16 +171,6 @@ void EventHandler::NewEvent(val_list* vl)
|
|||
mgr.Dispatch(ev);
|
||||
}
|
||||
|
||||
void EventHandler::AddRemoteHandler(SourceID peer)
|
||||
{
|
||||
receivers.append(peer);
|
||||
}
|
||||
|
||||
void EventHandler::RemoveRemoteHandler(SourceID peer)
|
||||
{
|
||||
receivers.remove(peer);
|
||||
}
|
||||
|
||||
bool EventHandler::Serialize(SerialInfo* info) const
|
||||
{
|
||||
return SERIALIZE(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue