Class MsgBroadcast

Index Home MAE > MAE Architecture > MAE Data Types > Class Index > Class MsgBroadcast

Summary
Public Methods
MsgBroadcast()
void setupListener(newcbfn)
static bool send(request, params, group)
Private Properties

#include <MsgBroadcast.h >

Summary

This class enables your application to send broadcast messages to all the other apps.

This is a special instance of the Messenger class.

All messages are routed through MsgBroker.

Public Methods

MsgBroadcast()

Constructor.

void setupListener(newcbfn)

MessengerFN newcbfn

the new callback function


Register to listen for broadcast messages

Handle all broadcast messages

static bool send(request, params, group)

const string& request

the broadcast request to send (should be registered in broadcast.mreg)

HashArray& params

parameters to accompany the request

const string& group

broadcast group name

Default value: ""


Package the request and send to display handler (usergw)

Return value: true if message sent, false if it failed

Private Properties

Messenger messengerBroadcast

The Messenger|Messenger class instance for sending messages

static MessengerFN cbfn

Callback function to handle broadcast messages