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

LCRTPFileRecorderGM Class Reference
[GraphManager]

#include <LCRTPFileRecorderGM.h>

Inheritance diagram for LCRTPFileRecorderGM:

Inheritance graph
[legend]
Collaboration diagram for LCRTPFileRecorderGM:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LCRTPFileRecorderGM (GMUser *user, MNSelector &sel)
virtual ~LCRTPFileRecorderGM ()
virtual void init (int idx)
virtual void uninit ()
virtual void start ()
virtual void set_hostnames (const MNString &client, const MNString &server)
virtual void set_ports (int idx, MNSocket *locDownRtp, MNSocket *locDownRtcp, int distDown, MNSocket *locUpRtp, MNSocket *locUpRtcp, int distUp)
virtual bool graphManNotify (int idx, SH::Base *caller, SH::Notification attribute, void *msg)
virtual int open_file (int idx, const char *name, int rtp_pt, SDP::PayloadTypes int_pt, u_int32 bandwidth, SDP::RetransTypes int_rt, int packetsize)
virtual int play (int startp, int stopp)
virtual int stop ()
virtual int pause ()
virtual int jump (long pos)
void set_repeat_times (u_int32 lc_max_loop)
void set_listpacket_timeout (u_int32 secs)
void set_endpacket_timeout (u_int32 secs)

Constructor & Destructor Documentation

LCRTPFileRecorderGM::LCRTPFileRecorderGM GMUser user,
MNSelector sel
 

virtual LCRTPFileRecorderGM::~LCRTPFileRecorderGM  )  [virtual]
 


Member Function Documentation

virtual bool LCRTPFileRecorderGM::graphManNotify int  idx,
SH::Base caller,
SH::Notification  attribute,
void *  msg
[virtual]
 

Implements SHGraphManager.

virtual void LCRTPFileRecorderGM::init int  idx  )  [virtual]
 

Implements ServerGM.

virtual int LCRTPFileRecorderGM::jump long  pos  )  [virtual]
 

Implements ServerGM.

virtual int LCRTPFileRecorderGM::open_file int  idx,
const char *  name,
int  rtp_pt,
SDP::PayloadTypes  int_pt,
u_int32  bandwidth,
SDP::RetransTypes  int_rt,
int  packetsize
[virtual]
 

This passes the name of destination file to the file sink stream handler. All other parameters are ignored.

Parameters:
name Name of the destination file. It should be a valid, writable file. If a NULL pointer is passed instead of a string, the filename /dev/null is assumed. No further checks are performed at this time.
payload For interface compatibility with ServerGM. Ignored.
payload_codec For interface compatibility with ServerGM. Ignored.
bandwidth For interface compatibility with ServerGM. Ignored.
packetsize For interface compatibility with ServerGM. Ignored.
Precondition:
init must not have been called yet.

virtual int LCRTPFileRecorderGM::pause  )  [virtual]
 

Implements ServerGM.

virtual int LCRTPFileRecorderGM::play int  startp,
int  stopp
[virtual]
 

Implements ServerGM.

void LCRTPFileRecorderGM::set_endpacket_timeout u_int32  secs  ) 
 

Set the SH_ATTR_LCRTP_END_TIMEOUT attribute of the RTPDecoderSH.

Parameters:
secs The list packet timeout in seconds.
Precondition:
init must not have been called yet.

virtual void LCRTPFileRecorderGM::set_hostnames const MNString client,
const MNString server
[virtual]
 

Set the hostnames of the server. The client hostname is ignored.

Parameters:
server The host name of the server, its dotted decimal address, or the dotted decimal address of the multicast group to join. This value must be valid but it is not checked before the init function.
client Ignored. The client is always the local host, so this value is ignored to allow values such as NULL, "" or localhost without trouble.
Precondition:
init must not have been called yet.

The server string must be a valid host name, host address or multicast address. This is not checked.

Implements ServerGM.

void LCRTPFileRecorderGM::set_listpacket_timeout u_int32  secs  ) 
 

Set the SH_ATTR_LCRTP_LIST_TIMEOUT attribute of the RTPDecoderSH.

Parameters:
secs The list packet timeout in seconds.
Precondition:
init must not have been called yet.

virtual void LCRTPFileRecorderGM::set_ports int  idx,
MNSocket locDownRtp,
MNSocket locDownRtcp,
int  distDown,
MNSocket locUpRtp,
MNSocket locUpRtcp,
int  distUp
[virtual]
 

Set the ports ports that we use for reading and writing. In this case, the remote upstream ports are known, and the local upstream ports must be passed to this function. There are no local or remote downstream ports.

Parameters:
locDownRtp must be NULL
locDownRtcp must be NULL
distDown must be -1
locUpRtp Local UDP/TCP socket that will be swallowed to become the local RTP port. The socket must be open and bound. The port that it is bound to must be even. The conditions are not checked.
locUpRtcp May be NULL. If it is not NULL a UDP socket that will be used as the RTCP port that belongs to the RTP port defined in locUpRtp.
distUp The remote sender's (or several senders') RTP port. The RTCP port is deduced if necessary. This must be valid port.
Precondition:
locUpRtp is UDP/TCP socket that must be open and bound. This port that it is bound to must be even. These conditions are not checked. If locUpRtcp is not NULL, it must be an open UDP/TCP socket that is bound to the odd port above locUpRtp. These conditions are not checked.

Implements ServerGM.

void LCRTPFileRecorderGM::set_repeat_times u_int32  lc_max_loop  ) 
 

Set the SH_ATTR_LCRTP_REPEAT_TIMES attribute of the RTPDecoderSH.

Parameters:
lc_max_loop The maximum number of retransmissions of the loss list before giving up.
Precondition:
init must not have been called yet.

virtual void LCRTPFileRecorderGM::start  )  [virtual]
 

Implements ServerGM.

virtual int LCRTPFileRecorderGM::stop  )  [virtual]
 

Implements ServerGM.

virtual void LCRTPFileRecorderGM::uninit  )  [virtual]
 

Implements ServerGM.


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