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 |
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
~RtspTcpBuffer
public virtual ~RtspTcpBuffer()
- Deconstructor
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