#include <comms.h>
Inheritance diagram for Comms:


Public Member Functions | |
| Comms (LaunchNewId &lid, Manager &manager) | |
| ~Comms () | |
| virtual void | StopAllCommunications () |
| void | AdviseCallCreation (const PString &remoteCont) |
| virtual void | SilentlyEndAll () |
Protected Member Functions | |
| virtual void | ProcessTransferUdp (PStringArray &cmds, PString &sender) |
| virtual void | ProcessHangup (PStringArray &cmds, PString &sender) |
| virtual void | ProcessCallNode (PStringArray &cmds, PString &sender) |
| virtual void | ProcessStatusQuery (PStringArray &cmds, PString &sender) |
| PString | GetDurationInfo () |
| virtual void | ProcessDuration (PStringArray &cmds, PString &sender) |
| virtual void | ProcessIdentify (PStringArray &cmds, PString &sender) |
| virtual void | ProcessDebug (PStringArray &cmds, PString &sender) |
| virtual void | ProcessAnswer (PStringArray &cmds, PString &sender) |
| virtual BOOL | SendDtmf (const PString &dtmfVals) |
| virtual BOOL | OkToHangup () |
Protected Attributes | |
| Manager & | manager |
| PString | remoteController |
Audio read write thread handles, socket, | |
| AudioRead * | audioReadThread |
| AudioWrite * | audioWriteThread |
|
||||||||||||
|
Constructor, with a reference to the manager and the unique ID generator |
|
|
Close down the handling of incoming message, |
|
|
Send a message to the remote controller saying that we are created. The id of this node is appended to the message. |
|
|
Get information (in a textual form) of how long this call has been up |
|
|
Some MessageFrame instances do not obey the hangup command. This virtual method says we can hangup, cause we are one channel of a conference call. This instance of the comms should close on receiving a hangup Reimplemented from MessageFrame. |
|
||||||||||||
|
we have received a command advising us how to answer to the incoming call, so we act as required and reply accordingly Reimplemented from MessageFrame. |
|
||||||||||||
|
we have received a Call other Node command, so do it and reply accordingly Reimplemented from MessageFrame. |
|
||||||||||||
|
we have received a command which enables/disables debug information so install as required and reply accordingly Reimplemented from MessageFrame. |
|
||||||||||||
|
we have received a command queryig the current call duration , so extract information & answer Reimplemented from MessageFrame. |
|
||||||||||||
|
we have received a hangup message, so end the call Reimplemented from MessageFrame. |
|
||||||||||||
|
we have received a command requesting that we identify ourselves so do it and reply accordingly Reimplemented from MessageFrame. |
|
||||||||||||
|
we have received a query status command, so do it and reply accordingly Reimplemented from MessageFrame. |
|
||||||||||||
|
we have received a command advising us that we are to install udp comms with a particular remote node id. We override this method so we know when are being transferred. On being transferred, we move ourselves out of the Manager's list of pending calls. Then we call the ancestor method to actually do the work of transferring the udp Reimplemented from MessageFrame. |
|
|
Send this dtmf string to the remote node. Returns TRUE on success, FALSE on failure. Reimplemented from MessageFrame. |
|
|
We have a comms error, so just close everything right now (or alternatively, it is the end of this program). Send no message to the remote node - just end end end. Reimplemented from MessageFrame. |
|
|
Send a message to the remote controller that we are closing down now |
|
|
Pointer to the thead instance that reads from PSafePtr<Member>, and sends this back through the socket |
|
|
Pointer to the thead instance that reads from a socket, and writes the audio to the PSafePtr<Member> |
|
|
Reference back to the most important class of all |
|
|
The id of the controller who has created this call |
1.4.4