#include <SoundProxy.hh>
Collaboration diagram for clSoundProxy:

Public Member Functions | |
| clSoundProxy () | |
| ~clSoundProxy () | |
| int | Exec () |
| void | Stop () |
| void * | SoundInThread (void *) |
| void * | WaitConnectThread (void *) |
| void * | ServeClientThread (void *) |
Private Member Functions | |
| void | AddToLog (char, const char *) |
| void | AddToLog (char, const char *, int) |
| int | FindFreeSlot () |
Private Attributes | |
| volatile bool | bRun |
| bool | bServeClient [SP_MAXCLIENTS] |
| int | iServerPort |
| int | iServicePort |
| int | iClientSockH [SP_MAXCLIENTS] |
| char | cpLogFile [_POSIX_PATH_MAX+1] |
| char | cpServerHost [SP_SERV_MAXLEN+1] |
| char * | cpFirstMsg |
| char * | cpDataMsg |
| pthread_t | ptidSoundIn |
| pthread_t | ptidWaitConnect |
| pthread_t | ptidServeClient [SP_MAXCLIENTS] |
| clAlloc | FirstMsg |
| clAlloc | DataMsg |
| clCfgFile | Cfg |
| clCondition | CondData |
| clLogFile | Log |
| clMutex | MutexData |
| clMutex | MutexClass |
Definition at line 49 of file SoundProxy.hh.
|
|
Definition at line 144 of file SoundProxy.cc. References bRun, bServeClient, Cfg, cpDataMsg, cpFirstMsg, cpLogFile, cpServerHost, DataMsg, FirstMsg, clCfgFile::GetInt(), clCfgFile::GetStr(), GLOBAL_HEADER_LEN, iServerPort, iServicePort, Log, clLogFile::Open(), clCfgFile::SetFileName(), SP_BUFFER_SIZE, SP_CFGFILE, SP_DEF_LOGFILE, and SP_MAXCLIENTS. |
|
|
Definition at line 164 of file SoundProxy.cc. |
|
||||||||||||
|
Definition at line 108 of file SoundProxy.cc. References clLogFile::Add(), Log, and MutexClass. Referenced by Exec(), ServeClientThread(), SoundInThread(), and WaitConnectThread(). |
|
||||||||||||||||
|
Definition at line 116 of file SoundProxy.cc. References clLogFile::Add(), Log, and MutexClass. |
|
|
Definition at line 125 of file SoundProxy.cc. References bServeClient, MutexClass, and SP_MAXCLIENTS. Referenced by WaitConnectThread(). |
|
|
Definition at line 169 of file SoundProxy.cc. References AddToLog(), ptidSoundIn, ptidWaitConnect, Stop(), WrapSoundInThread(), and WrapWaitConnectThread(). Referenced by main(). |
|
|
Definition at line 206 of file SoundProxy.cc. References bRun, and MutexClass. Referenced by Exec(), and SoundInThread(). |
|
|
Definition at line 214 of file SoundProxy.cc. References AddToLog(), bRun, bRun, clSockOp::Close(), CondData, clSockClie::Connect(), cpDataMsg, cpFirstMsg, cpServerHost, clSockOp::DisableNagle(), clSockOp::GetErrno(), clSockClie::GetErrno(), GLOBAL_HEADER_LEN, iServerPort, MutexClass, MutexData, clSockOp::ReadN(), clSockOp::ReadSelect(), clSockOp::SetHandle(), clSockOp::SetTypeOfService(), clSockOp::Shutdown(), SOp, SP_1ST_MSG_TIMEOUT, SP_BUFFER_SIZE, SP_CONV_BUF_LEN, SP_MSG_TIMEOUT, SP_SCHED_PRIORITY, and Stop(). Referenced by WrapSoundInThread(). |
|
|
Definition at line 301 of file SoundProxy.cc. References AddToLog(), clSockServ::Bind(), bRun, bServeClient, FindFreeSlot(), iClientSockH, iServicePort, MutexClass, ptidServeClient, SP_WAIT_CONN_TIMEOUT, clSockServ::WaitForConnect(), and WrapServeClientThread(). Referenced by WrapWaitConnectThread(). |
|
|
Definition at line 339 of file SoundProxy.cc. References AddToLog(), bRun, clSockOp::Close(), CondData, cpDataMsg, cpFirstMsg, clSockOp::DisableNagle(), clSockOp::GetErrno(), clSockOp::GetPeerName(), GLOBAL_HEADER_LEN, iClientSockH, MutexClass, MutexData, clSockOp::SetHandle(), clSockOp::SetTypeOfService(), SOp, SP_1ST_MSG_TIMEOUT, SP_BUFFER_SIZE, SP_CONV_BUF_LEN, SP_MSG_TIMEOUT, SP_SCHED_PRIORITY, clSockOp::WriteN(), and clSockOp::WriteSelect(). Referenced by WrapServeClientThread(). |
|
|
Definition at line 51 of file SoundProxy.hh. Referenced by clSoundProxy(), ServeClientThread(), SoundInThread(), Stop(), and WaitConnectThread(). |
|
|
Definition at line 52 of file SoundProxy.hh. Referenced by clSoundProxy(), FindFreeSlot(), and WaitConnectThread(). |
|
|
Definition at line 53 of file SoundProxy.hh. Referenced by clSoundProxy(), and SoundInThread(). |
|
|
Definition at line 54 of file SoundProxy.hh. Referenced by clSoundProxy(), and WaitConnectThread(). |
|
|
Definition at line 55 of file SoundProxy.hh. Referenced by ServeClientThread(), and WaitConnectThread(). |
|
|
Definition at line 56 of file SoundProxy.hh. Referenced by clSoundProxy(). |
|
|
Definition at line 57 of file SoundProxy.hh. Referenced by clSoundProxy(), and SoundInThread(). |
|
|
Definition at line 58 of file SoundProxy.hh. Referenced by clSoundProxy(), ServeClientThread(), and SoundInThread(). |
|
|
Definition at line 59 of file SoundProxy.hh. Referenced by clSoundProxy(), ServeClientThread(), and SoundInThread(). |
|
|
Definition at line 60 of file SoundProxy.hh. Referenced by Exec(). |
|
|
Definition at line 61 of file SoundProxy.hh. Referenced by Exec(). |
|
|
Definition at line 62 of file SoundProxy.hh. Referenced by WaitConnectThread(). |
|
|
Definition at line 63 of file SoundProxy.hh. Referenced by clSoundProxy(). |
|
|
Definition at line 64 of file SoundProxy.hh. Referenced by clSoundProxy(). |
|
|
Definition at line 65 of file SoundProxy.hh. Referenced by clSoundProxy(). |
|
|
Definition at line 66 of file SoundProxy.hh. Referenced by ServeClientThread(), and SoundInThread(). |
|
|
Definition at line 67 of file SoundProxy.hh. Referenced by AddToLog(), and clSoundProxy(). |
|
|
Definition at line 68 of file SoundProxy.hh. Referenced by ServeClientThread(), and SoundInThread(). |
|
|
Definition at line 69 of file SoundProxy.hh. Referenced by AddToLog(), FindFreeSlot(), ServeClientThread(), SoundInThread(), Stop(), and WaitConnectThread(). |
1.3.3