## class XGBroadcast

> Declared in <XEvent.h>

> This is the class for sending global broadcasts. This is basically a system-wide 'XGSend' object.

Public methods

> XGBroadcast::AddBroadcast
> XGBroadcast::PostBroadcast
> XGBroadcast::RemoveBroadcast
> XGBroadcast::SendBroadcast
> XGBroadcast::SendPostBroadcast

Public methods

XGBroadcast::AddBroadcast

> Usage: static void AddBroadcast(XGDispatch*r)

> Adds the specified dispatch object to the list of dispatch objects which will receive broadcasted messages.

XGBroadcast::PostBroadcast

> Usage: void XGBroadcast::PostBroadcast(long msg,long arg,void*parg)

> This takes the arguments and creates a _PostRecord which contains the arguments, for later posting.

> WARNING: As the messages are sent later, putting the 'parg' object on the stack would be a problem.

XGBroadcast::RemoveBroadcast

> Usage: static void RemoveBroadcast(XGDispatch*r)

> Removes the specified dispatch object from the list of objects which will receive broadcasted messages.

XGBroadcast::SendBroadcast

> Usage: static void SendBroadcast(long msg,long arg,void*parg)

> Actually broadcasts a message to all receivers which are receiving globally broadcast messages

XGBroadcast::SendPostBroadcast

> Usage: void XGBroadcast::SendPostBroadcast()

> Run the list and send all the messages that were delayed. This is called from the internal YAAF event loop.