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

MNDummyStreamer Class Reference

#include <MNDummyStreamer.h>

Inheritance diagram for MNDummyStreamer:

Inheritance graph
[legend]
Collaboration diagram for MNDummyStreamer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MNDummyStreamer (MNSelector &sel, DataPumpResponse *resp)
virtual ~MNDummyStreamer ()
virtual int init (KomServer *streamer, StreamingType type=StreamingFromFileToPort)
virtual bool createUpstreamSocks (int idx, int &requested, RTPSockets::FactoryMode mode, RTSP::TransportTypes requested_transport=RTSP::RTP_AVP_UDP)
virtual bool createDownstreamSocks (int idx, int &requested, RTPSockets::FactoryMode mode, RTSP::TransportTypes requested_transport=RTSP::RTP_AVP_UDP)
virtual int stream_start (int idx, const MNString &filename, const MNString &DescFileName, const MNString &client, const MNString &server, int port, int port2)
virtual int play (int start, int stop)
virtual int stop ()
virtual int pause ()
virtual bool fillTransportString (int idx, MNString &out, bool multicast) const

Constructor & Destructor Documentation

MNDummyStreamer::MNDummyStreamer MNSelector sel,
DataPumpResponse resp
 

virtual MNDummyStreamer::~MNDummyStreamer  )  [virtual]
 


Member Function Documentation

virtual bool MNDummyStreamer::createDownstreamSocks int  idx,
int &  requested,
RTPSockets::FactoryMode  mode,
RTSP::TransportTypes  requested_transport = RTSP::RTP_AVP_UDP
[virtual]
 

The data pump tries to create the requested socket as an RTP socket, with the matching RTCP socket as well. The mode determines whether the actual port may differ, and whether the RTCP socket must exist or not. On return, the actually allocated port is returned in the parameter requested.

Parameters:
idx Index into the socket vector.
requested On input, the requested port. On output and in case of success, the actually opened port.
mode DEFAULT indicates that any pair of ports can be opened, FIXED indicates that only the requested port is OK, RTCP_FAIL_OK indicates that only the RTP port is really required.
requested_transport Informs if the ports are UDP or TCP.
Returns:
true on success, false on error.

Implements dataPump.

virtual bool MNDummyStreamer::createUpstreamSocks int  idx,
int &  requested,
RTPSockets::FactoryMode  mode,
RTSP::TransportTypes  requested_transport = RTSP::RTP_AVP_UDP
[virtual]
 

The data pump tries to create the requested socket as an RTP socket, with the matching RTCP socket as well. The mode determines whether the actual port may differ, and whether the RTCP socket must exist or not. On return, the actually allocated port is returned in the parameter requested.

Parameters:
idx Index into the socket vector.
requested On input, the requested port. On output and in case of success, the actually opened port.
mode DEFAULT indicates that any pair of ports can be opened, FIXED indicates that only the requested port is OK, RTCP_FAIL_OK indicates that only the RTP port is really required.
requested_transport Translated to an enum for the RTSP transport specification. Usually 1 for RTP/AVP/UDP.
Returns:
true on success, false on error.

Implements dataPump.

virtual bool MNDummyStreamer::fillTransportString int  idx,
MNString out,
bool  multicast
const [virtual]
 

When the proxy must formulate a SETUP response for the client, the Transport line must be created. Since the transport protocol is only known to the specific data pump, the data pump is the entity that should write this string.

Parameters:
out Out parameter containing the transport string that is fill by the specific data pump.
mc In parameter telling the data pump that it should assume multicast or unicast, respectively. The necessity of this parameter is a design flaw, because this information is exchange with the data pump far too late.
Returns:
True, if the transport string was successfully filled in, false otherwise.

Implements dataPump.

virtual int MNDummyStreamer::init KomServer *  streamer,
StreamingType  type = StreamingFromFileToPort
[virtual]
 

Implements dataPump.

virtual int MNDummyStreamer::pause  )  [virtual]
 

Reimplemented from dataPump.

virtual int MNDummyStreamer::play int  start,
int  stop
[virtual]
 

Implements dataPump.

virtual int MNDummyStreamer::stop  )  [virtual]
 

Implements dataPump.

virtual int MNDummyStreamer::stream_start int  idx,
const MNString filename,
const MNString DescFileName,
const MNString client,
const MNString server,
int  port,
int  port2
[virtual]
 

Implements dataPump.


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