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

NopStreamer Class Reference

#include <NopStreamer.h>

Inheritance diagram for NopStreamer:

Inheritance graph
[legend]
Collaboration diagram for NopStreamer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NopStreamer (MNSelector &sel, DataPumpResponse *resp, SDPSessionDescription *sdesc)
 this is needed when no SDP-description is stored in the proxy!
virtual ~NopStreamer ()
virtual int init (KomServer *streamer, StreamingType type)
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 MNSocketgetLocalDownRtp (int idx) const
virtual MNSocketgetLocalDownRtcp (int idx) const
 see getLocalDownRtp
virtual MNSocketgetLocalUpRtp (int idx) const
 see getLocalDownRtp
virtual MNSocketgetLocalUpRtcp (int idx) const
 see getLocalDownRtp
virtual int getDistantPortDownstream (int idx) const
virtual int getDistantPortUpstream (int idx) const
 getDistantPortDownstream
virtual int getLocalPortDownstream (int idx) const
virtual int getLocalPortUpstream (int idx) const
 getLocalPortDownstream
virtual bool fillTransportString (int idx, MNString &out, bool mc) const
virtual int stream_start (int idx, const MNString &filename, const MNString &DescFileName, const MNString &client, const MNString &server, int ClientPortAnnounced, int ServerPortAnnounced)
virtual int play (int start, int stop)
virtual int stop ()
virtual int pause ()
virtual int jump (int cont_time)
virtual void fileComplete (const char *filename, bool comp)
virtual long getFilePos ()
virtual void set_client_port (int)
virtual void setMulticastInformation (MNString server, MNSocket *main_rtp, MNSocket *main_rtcp)
virtual void setBufferInformation (int threshold, int size)
virtual bool isPatchingCapable () const

Constructor & Destructor Documentation

NopStreamer::NopStreamer MNSelector sel,
DataPumpResponse resp,
SDPSessionDescription sdesc
 

this is needed when no SDP-description is stored in the proxy!

virtual NopStreamer::~NopStreamer  )  [virtual]
 


Member Function Documentation

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

Called when the server wants to create downstream dummy sockets in this data pump. Set a boolean variable to indicate that this has happened.

Implements dataPump.

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

Called when the server wants to created upstream dummy sockets in this data pump. Set a boolean variable to indicate that this has happened.

Implements dataPump.

virtual void NopStreamer::fileComplete const char *  filename,
bool  comp
[virtual]
 

Reimplemented from dataPump.

virtual bool NopStreamer::fillTransportString int  idx,
MNString out,
bool  mc
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 NopStreamer::getDistantPortDownstream int  idx  )  const [virtual]
 

Get the remote port of the downstream RTP "connection". A dummy in this case.

Reimplemented from dataPump.

virtual int NopStreamer::getDistantPortUpstream int  idx  )  const [virtual]
 

getDistantPortDownstream

Reimplemented from dataPump.

virtual long NopStreamer::getFilePos  )  [virtual]
 

If the dataPump is streaming, this method returns the current time position in the source file. Else it returns -1!!

Reimplemented from dataPump.

virtual MNSocket* NopStreamer::getLocalDownRtcp int  idx  )  const [virtual]
 

see getLocalDownRtp

Reimplemented from dataPump.

virtual MNSocket* NopStreamer::getLocalDownRtp int  idx  )  const [virtual]
 

Return an invalid dummy pointer when the server has tried to create downstream sockets, or NULL if that was not the case.

Reimplemented from dataPump.

virtual int NopStreamer::getLocalPortDownstream int  idx  )  const [virtual]
 

Get the local port of the downstream RTP "connection". A dummy in this case.

Reimplemented from dataPump.

virtual int NopStreamer::getLocalPortUpstream int  idx  )  const [virtual]
 

getLocalPortDownstream

Reimplemented from dataPump.

virtual MNSocket* NopStreamer::getLocalUpRtcp int  idx  )  const [virtual]
 

see getLocalDownRtp

Reimplemented from dataPump.

virtual MNSocket* NopStreamer::getLocalUpRtp int  idx  )  const [virtual]
 

see getLocalDownRtp

Reimplemented from dataPump.

virtual int NopStreamer::init KomServer *  streamer,
StreamingType  type
[virtual]
 

Implements dataPump.

virtual bool NopStreamer::isPatchingCapable  )  const [inline, virtual]
 

If a data pump is capable of patching support, it must overload the functions setMulticastInformation and setBufferInformation that exist only as dummy implementations in this base class. The default is that a data pump is not capable of patching.

Reimplemented from dataPump.

virtual int NopStreamer::jump int  cont_time  )  [virtual]
 

Reimplemented from dataPump.

virtual int NopStreamer::pause  )  [virtual]
 

Reimplemented from dataPump.

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

Implements dataPump.

virtual void NopStreamer::set_client_port int   )  [inline, virtual]
 

virtual void NopStreamer::setBufferInformation int  threshold,
int  size
[virtual]
 

A dummy provided for non-patching-capable data pumps and overloaded by patching-capable data pumps.

Reimplemented from dataPump.

virtual void NopStreamer::setMulticastInformation MNString  server,
MNSocket main_rtp,
MNSocket main_rtcp
[virtual]
 

A dummy provided for non-patching-capable data pumps and overloaded by patching-capable data pumps.

Reimplemented from dataPump.

virtual int NopStreamer::stop  )  [virtual]
 

Implements dataPump.

virtual int NopStreamer::stream_start int  idx,
const MNString filename,
const MNString DescFileName,
const MNString client,
const MNString server,
int  ClientPortAnnounced,
int  ServerPortAnnounced
[virtual]
 

Implements dataPump.


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