[Home] [Prev] [Next] [Up]
XGSend class
This is the first of the XGSend/XGReceive pair to send messages to registered receivers.
Usage:
#include <XEvent.h>
class XGSend;
Description
This is class maintains a list of receivers, and can send messages to those receivers.
Construction/Destruction
XGSend::XGSend(void)
Create a sender with no registered receivers
XGSend::~XGSend()
Remove all registered receivers and shut down
Receiver Registration
void XGSend::AddReceiver(XGReceiver *r)
Registers the specified receiver to receive messages from this sender
void XGSend::RemoveReceiver(XGReceiver *r)
Removes this receiver from the list of receivers registered to receive messages from this sender
Message Send
void XGSend::SendMessage(long msg, long arg, void *parg)
Send this message to all registered receivers.