rtspstack
Class RtspTcpBuffer


class RtspTcpBuffer

RtspTcpBuffer Receives a message from a tcp connection, and adds the rtsp messages into into a shraed recvFifo.


Constructor Summary
RtspTcpBuffer(Connection conn, int keepAliveCounter, Fifo< Sptr > & recvFifo, int bufferSize)
          Constructor Process data on TCP connection

Destructor Summary
 virtual ~RtspTcpBuffer()
          Deconstructor

Method Summary
 voidcloseConnection()
          closes the TCP connection
 const ConnectiongetConnection()
          accessor function
 const stringgetDescription()
          accessor function
 const intgetMapIndex()
          accessor function
 boolisAlive()
          true if this TCP connection has been active
 boolprocessConnection(Sptr tcpBufferObj)
          process data from TCP connect and add new RTSP message into recvFifo

Constructor Detail

RtspTcpBuffer

public RtspTcpBuffer(Connection conn, int keepAliveCounter, Fifo< Sptr > & recvFifo, int bufferSize)
Constructor Process data on TCP connection
Parameters:
conn - TCP socket connection
keepAliveCounter - counter until self destruct
recvFifo - fifo to insert new RTSP messages
bufferSize - size of raw data buffer from socket
Method Detail

~RtspTcpBuffer

public virtual ~RtspTcpBuffer()
Deconstructor
Method Detail

closeConnection

public void closeConnection()
closes the TCP connection

getConnection

public const Connection getConnection()
accessor function

getDescription

public const string getDescription()
accessor function

getMapIndex

public const int getMapIndex()
accessor function

isAlive

public bool isAlive()
true if this TCP connection has been active

processConnection

public bool processConnection(Sptr tcpBufferObj)
process data from TCP connect and add new RTSP message into recvFifo
Returns: true if sucessful