Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

RTSPFillBuffer Class Reference

#include <RTSPFillBuffer.h>

Inheritance diagram for RTSPFillBuffer:

Inheritance graph
[legend]
Collaboration diagram for RTSPFillBuffer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RTSPFillBuffer (MNSelector &slct)
 RTSPFillBuffer (MNSelector &slct, int fd)
virtual ~RTSPFillBuffer ()
virtual MNTCPSocket::Fail connect (int port, const char *hostname)
void setConnectFailIsFatal ()
virtual void callback (MNSelector *slct, int fd)
void reader ()
virtual void receiveIt (uchar_t *buffer, int bufsz, int fd)
virtual void MsgOut (int errNo, const MNString &headers, const MNString &body, int seq)
virtual void MsgOut (const MNString &text, int seq)
virtual void MsgOut (const MNString &text)
virtual void MsgOutNoEOL (const MNString &text)
void MsgOut (MNString text, int seq, MNString body)
int MsgOut2LibServer (MNString text)
void CreateCSeqAnswer (MNString &Answer, int seq)
virtual MNString getClientHostname ()
virtual MNString getMulticastAddress ()
MNString Rope2MNString (MNRope &rope)
MNString getLastHeaderString ()
MNString getLastSDPString ()
void deleteHeaderLine (MNString, MNString, MNString &, MNString &)
virtual int getNextCSeq ()
void setBandwidth (int bw)
int getBandwidth () const

Constructor & Destructor Documentation

RTSPFillBuffer::RTSPFillBuffer MNSelector slct  ) 
 

RTSPFillBuffer::RTSPFillBuffer MNSelector slct,
int  fd
 

virtual RTSPFillBuffer::~RTSPFillBuffer  )  [virtual]
 


Member Function Documentation

virtual void RTSPFillBuffer::callback MNSelector slct,
int  fd
[virtual]
 

Implements MNTCPSocket.

virtual MNTCPSocket::Fail RTSPFillBuffer::connect int  port,
const char *  hostname
[virtual]
 

This function calls MNTCPSocket::connect, which in turn calls ::connect. It is obviously meant for use with the constructor that is not passed a connected socket. In addition to the MNTCPSocket function, this function changes the socket mode to non-blocking after a successful connect.

Reimplemented from MNTCPSocket.

void RTSPFillBuffer::CreateCSeqAnswer MNString Answer,
int  seq
 

void RTSPFillBuffer::deleteHeaderLine MNString  ,
MNString  ,
MNString ,
MNString
 

int RTSPFillBuffer::getBandwidth  )  const [virtual]
 

Reimplemented from ControlBase.

virtual MNString RTSPFillBuffer::getClientHostname  )  [virtual]
 

Implements ControlBase.

MNString RTSPFillBuffer::getLastHeaderString  ) 
 

MNString RTSPFillBuffer::getLastSDPString  ) 
 

virtual MNString RTSPFillBuffer::getMulticastAddress  )  [virtual]
 

Implements ControlBase.

virtual int RTSPFillBuffer::getNextCSeq  )  [virtual]
 

In a perfect API, the send functions should be able to insert the CSeq into RTSP messages without the caller asking for this information first. It seems that this is problematic somewhere in the code.

Implements ControlBase.

void RTSPFillBuffer::MsgOut MNString  text,
int  seq,
MNString  body
 

virtual void RTSPFillBuffer::MsgOut const MNString text  )  [virtual]
 

This version of MsgOut takes the "text", adds a CRLF and sends it.

Implements ControlBase.

virtual void RTSPFillBuffer::MsgOut const MNString text,
int  seq
[virtual]
 

This version of MsgOut takes the String "text", adds a CRLF, and sends it.

Implements ControlBase.

virtual void RTSPFillBuffer::MsgOut int  errNo,
const MNString headers,
const MNString body,
int  seq
[virtual]
 

This version of Msgout creates a complete RESPONSE MESSAGE and sends it.

Implements ControlBase.

int RTSPFillBuffer::MsgOut2LibServer MNString  text  ) 
 

virtual void RTSPFillBuffer::MsgOutNoEOL const MNString text  )  [virtual]
 

This version of MsgOut takes the String "text", and rawly sends it.

Implements ControlBase.

void RTSPFillBuffer::reader  ) 
 

virtual void RTSPFillBuffer::receiveIt uchar_t *  buffer,
int  bufsz,
int  fd
[virtual]
 

This functions is called when data is received from a socket. If the data looks like a complete data block, the various parsers are called, command objects are created and their call() function is called.

Parameters:
buffer The buffer containing the newly arrived data.
bufsz The amount of arrived data.
slctr The selector that noticed that data arrived.
fd The socket on which the data was received. In case of a SETUP message, this fd will be stored in the session factory to identify the session if it crashes.

MNString RTSPFillBuffer::Rope2MNString MNRope rope  ) 
 

void RTSPFillBuffer::setBandwidth int  bw  )  [virtual]
 

Reimplemented from ControlBase.

void RTSPFillBuffer::setConnectFailIsFatal  ) 
 


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:36:10 2005 for Komssys by doxygen 1.3.8