#include <RemoteStream.h>
Inheritance diagram for csl::RemoteStream:

Public Member Functions | |
| RemoteStream (char *clientName, unsigned short clientPort, unsigned ch, unsigned bufSize) | |
| Constructor. | |
| ~RemoteStream () | |
| sample ** | ioBuffers () |
| Accessors used by the reader thread. | |
| int | socket () |
| unsigned short | requestSize () |
| unsigned | bufferSwitch () |
| unsigned | bufferIndex () |
| unsigned | bufferSize () |
| sem_t * | semaphore () |
| void | nextBuffer (Buffer &outputBuffer) throw (CException) |
| Get a buffer of frames. | |
Protected Member Functions | |
| int | initSockets (char *serverName, unsigned short serverPort) |
| void | initPacket () |
| virtual int | connectToServer () |
Protected Attributes | |
| unsigned | mBufferSize |
| the size of the input ring buffer (in FRAMES) | |
| sample * | mIoBuffers [2] |
| My IO buffers (2 for dbl-buffering; mBufferSize frames in size). | |
| unsigned | mCurrentBuffer |
| current IO buffer in use | |
| unsigned | mCurrentFrame |
| current position in buffer | |
| int | mSocket |
| The socket I send to. | |
| CSL_RS_MSG | mHeader |
| The request packet header. | |
| sockaddr_in | mServerAddr |
| Socket addresses for the remote server and for me. | |
| sem_t * | mServerSemaphore |
| Semaphore to trigger call to server for samples. | |
|
||||||||||||||||||||
|
Constructor.
|
|
|
|
|
|
Accessors used by the reader thread.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get a buffer of frames.
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
the size of the input ring buffer (in FRAMES)
|
|
|
My IO buffers (2 for dbl-buffering; mBufferSize frames in size).
|
|
|
current IO buffer in use
|
|
|
current position in buffer
|
|
|
The socket I send to.
|
|
|
The request packet header.
|
|
|
Socket addresses for the remote server and for me.
|
|
|
Semaphore to trigger call to server for samples.
|
1.4.5-20051010