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


Public Member Functions | |
| Comms (LaunchNewId &lid) | |
| ~Comms () | |
| BOOL | ConstructReaderWriter (PString soundDevice) |
| virtual void | Terminate () |
| virtual void | WaitForTermination () |
| BOOL | StoppedByHangup () |
| BOOL | StoppedByExit () |
Protected Member Functions | |
| virtual void | ProcessHangup (PStringArray &cmds, PString &sender) |
| virtual void | ProcessCallNode (PStringArray &cmds, PString &sender) |
| virtual void | ProcessStatusQuery (PStringArray &cmds, PString &sender) |
| 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 void | ProcessQuitNow (PStringArray &cmds, PString &sender) |
| virtual BOOL | OkToQuitNow () |
Protected Attributes | |
| TestAudioWrite * | taw |
| TestAudioRead * | tar |
| PMutex | lockReaderWriter |
| BOOL | stopByHangup |
| BOOL | stopByExit |
|
|
Constuctor |
|
|
Terminate, wait for threads to exit, and destroy the tar & taw threads |
|
|
Open the test audio read and test audio write threads. Return TRUE if successfull, FALSE on failure |
|
|
Some MessageFrame instances do not have the permission to quit now. This virtual method determines if this instance is permitted to exit the program. This supervisor has permision to end all. 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 command advising us that we are to end now Reimplemented from MessageFrame. |
|
||||||||||||
|
we have received a query status command, so do it and reply accordingly Reimplemented from MessageFrame. |
|
|
Report if we were stopped by a shutdown request |
|
|
Report if we were stopped by hangup |
|
|
Shut down the read and write methods Reimplemented from MessageFrame. |
|
|
Block the calling process, and return when the threads have terminated |
|
|
Mutex which protects access to the tar/taw variables |
|
|
The terminating condition was |
|
|
The terminating condition was |
|
|
Class that reads audio from the sound device |
|
|
class that writes audio data to sound device |
1.4.4