## class XGSend

> Declared in <XEvent.h>

> This is part of a send/receive pair; this is the thing that sends messages

Construction/Destruction

> XGSend::XGSend
> XGSend::~XGSend

Message dispatch

> XGSend::SendMessage

Receiver Management

> XGSend::AddReceiver
> XGSend::RemoveReceiver

Construction/Destruction

XGSend::XGSend

> Usage: void XGSemaphore::LeaveCritical(void)

> Sender construction

XGSend::~XGSend

> Usage: XGSend::~XGSend()

> Remove everything receiving from me

Message dispatch

XGSend::SendMessage

> Usage: void XGSend::SendMessage(long msg,long arg,void*parg)

> Send a message to my receiver. This works, even if different objects are deleted while I do this.

Receiver Management

XGSend::AddReceiver

> Usage: void XGSend::AddReceiver(XGDispatch*d)

> Add the receiver to my list

XGSend::RemoveReceiver

> Usage: void XGSend::RemoveReceiver(XGDispatch*d)

> Remove this receiver