csl::RemoteStream Class Reference

#include <RemoteStream.h>

Inheritance diagram for csl::RemoteStream:

csl::UnitGenerator List of all members.

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)
samplemIoBuffers [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 & Destructor Documentation

RemoteStream::RemoteStream char *  clientName,
unsigned short  clientPort,
unsigned  ch,
unsigned  bufSize
 

Constructor.

RemoteStream::~RemoteStream  ) 
 


Member Function Documentation

sample** csl::RemoteStream::ioBuffers  )  [inline]
 

Accessors used by the reader thread.

int csl::RemoteStream::socket  )  [inline]
 

unsigned short csl::RemoteStream::requestSize  )  [inline]
 

unsigned csl::RemoteStream::bufferSwitch  )  [inline]
 

unsigned csl::RemoteStream::bufferIndex  )  [inline]
 

unsigned csl::RemoteStream::bufferSize  )  [inline]
 

sem_t* csl::RemoteStream::semaphore  )  [inline]
 

void RemoteStream::nextBuffer Buffer outputBuffer  )  throw (CException)
 

Get a buffer of frames.

int RemoteStream::initSockets char *  serverName,
unsigned short  serverPort
[protected]
 

void RemoteStream::initPacket  )  [protected]
 

int RemoteStream::connectToServer  )  [protected, virtual]
 


Member Data Documentation

unsigned csl::RemoteStream::mBufferSize [protected]
 

the size of the input ring buffer (in FRAMES)

sample* csl::RemoteStream::mIoBuffers[2] [protected]
 

My IO buffers (2 for dbl-buffering; mBufferSize frames in size).

unsigned csl::RemoteStream::mCurrentBuffer [protected]
 

current IO buffer in use

unsigned csl::RemoteStream::mCurrentFrame [protected]
 

current position in buffer

int csl::RemoteStream::mSocket [protected]
 

The socket I send to.

CSL_RS_MSG csl::RemoteStream::mHeader [protected]
 

The request packet header.

struct sockaddr_in csl::RemoteStream::mServerAddr [protected]
 

Socket addresses for the remote server and for me.

sem_t* csl::RemoteStream::mServerSemaphore [protected]
 

Semaphore to trigger call to server for samples.


The documentation for this class was generated from the following files:
Generated on Fri Apr 6 20:18:18 2007 for CSL by  doxygen 1.4.5-20051010