TAO_AV 4.0.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
TAO_AV_Callback Class Reference

Callback class that the user will be implementing for receiving frames from the network and also for timer events. More...

#include <Policy.h>

Inheritance diagram for TAO_AV_Callback:
Inheritance graph
[legend]
Collaboration diagram for TAO_AV_Callback:
Collaboration graph
[legend]

Public Member Functions

 TAO_AV_Callback ()
 
virtual ~TAO_AV_Callback ()
 
int open (TAO_AV_Protocol_Object *object, TAO_AV_Flow_Handler *handler)
 Called for opening the callback.
 
virtual int handle_start ()
 Called during Streamctrl->start.
 
virtual int handle_stop ()
 Called during Streamctrl->stop.
 
virtual int handle_timeout (void *arg)
 Called during timeout for Flow Producers.
 
virtual int schedule_timer ()
 
virtual int receive_frame (ACE_Message_Block *frame, TAO_AV_frame_info *frame_info=0, const ACE_Addr &address=ACE_Addr::sap_any)
 
virtual int receive_control_frame (ACE_Message_Block *frame, const ACE_Addr &address=ACE_Addr::sap_any)
 address from which the frame was received.
 
virtual int handle_destroy ()
 Called during Streamctrl->destroy i.e tear_down of the stream.
 
virtual void get_timeout (ACE_Time_Value *&tv, void *&arg)
 
TAO_AV_Protocol_Objectprotocol_object ()
 Accessor to protocol object.
 
virtual TAO_AV_PolicyList get_policies ()
 get the policies for the protocol object.
 

Protected Attributes

TAO_AV_Protocol_Objectprotocol_object_
 
TAO_AV_Flow_Handlerhandler_
 

Detailed Description

Callback class that the user will be implementing for receiving frames from the network and also for timer events.

Constructor & Destructor Documentation

◆ TAO_AV_Callback()

TAO_AV_Callback::TAO_AV_Callback ( )

◆ ~TAO_AV_Callback()

TAO_AV_Callback::~TAO_AV_Callback ( )
virtual

Member Function Documentation

◆ get_policies()

TAO_AV_PolicyList TAO_AV_Callback::get_policies ( )
virtual

get the policies for the protocol object.

◆ get_timeout()

void TAO_AV_Callback::get_timeout ( ACE_Time_Value *& tv,
void *& arg )
virtual

Called to get the timeout. If tv is 0 then the framework stop calling this. This will be called during the start of the frame and also if schedule_timer is called to get the timeout.

Reimplemented in TAO_AV_RTCP_Callback.

◆ handle_destroy()

int TAO_AV_Callback::handle_destroy ( )
virtual

Called during Streamctrl->destroy i.e tear_down of the stream.

Reimplemented in TAO_AV_RTCP_Callback.

◆ handle_start()

int TAO_AV_Callback::handle_start ( )
virtual

Called during Streamctrl->start.

Reimplemented in TAO_AV_RTCP_Callback.

◆ handle_stop()

int TAO_AV_Callback::handle_stop ( )
virtual

Called during Streamctrl->stop.

Reimplemented in TAO_AV_RTCP_Callback.

◆ handle_timeout()

int TAO_AV_Callback::handle_timeout ( void * arg)
virtual

Called during timeout for Flow Producers.

Reimplemented in TAO_AV_RTCP_Callback.

◆ open()

int TAO_AV_Callback::open ( TAO_AV_Protocol_Object * object,
TAO_AV_Flow_Handler * handler )

Called for opening the callback.

◆ protocol_object()

TAO_AV_Protocol_Object * TAO_AV_Callback::protocol_object ( )

Accessor to protocol object.

◆ receive_control_frame()

int TAO_AV_Callback::receive_control_frame ( ACE_Message_Block * frame,
const ACE_Addr & address = ACE_Addr::sap_any )
virtual

address from which the frame was received.

Reimplemented in TAO_AV_RTCP_Callback.

◆ receive_frame()

int TAO_AV_Callback::receive_frame ( ACE_Message_Block * frame,
TAO_AV_frame_info * frame_info = 0,
const ACE_Addr & address = ACE_Addr::sap_any )
virtual

Reimplemented in TAO_AV_RTCP_Callback.

◆ schedule_timer()

int TAO_AV_Callback::schedule_timer ( )
virtual

Member Data Documentation

◆ handler_

TAO_AV_Flow_Handler* TAO_AV_Callback::handler_
protected

◆ protocol_object_

TAO_AV_Protocol_Object* TAO_AV_Callback::protocol_object_
protected

The documentation for this class was generated from the following files: