# This file was automatically generated by bifcl from /usr/obj/ports/zeek-8.2.0/zeek-8.2.0/src/broker/messaging.bif (alternative mode).

export {

##! Functions for peering and various messaging patterns.



module Broker;




## Create a data structure that may be used to send a remote event via
## :zeek:see:`Broker::publish`.
##
## args: an event, followed by a list of argument values that may be used
##       to call it.
##
## Returns: opaque communication data that may be used to send a remote
##          event.
global Broker::make_event: function(va_args: any): Broker::Event ;


## Publishes an event at a given topic.
##
## topic: a topic associated with the event message.
##
## args: Either the event arguments as already made by
##       :zeek:see:`Broker::make_event` or the argument list to pass along
##       to it.
##
## Returns: true if the message is sent.
global Broker::publish: function(va_args: any): bool ;


global Broker::__flush_logs: function(): count ;


global Broker::__publish_id: function(topic: string , id: string ): bool ;


global Broker::__subscribe: function(topic_prefix: string ): bool ;


global Broker::__forward: function(topic_prefix: string ): bool ;


global Broker::__unsubscribe: function(topic_prefix: string ): bool ;

} # end of export section
module GLOBAL;
