Callback class that the user will be implementing for receiving frames from the network and also for timer events. More...
#include <Policy.h>
Public Member Functions | |
TAO_AV_Callback (void) | |
virtual | ~TAO_AV_Callback (void) |
int | open (TAO_AV_Protocol_Object *object, TAO_AV_Flow_Handler *handler) |
Called for opening the callback. | |
virtual int | handle_start (void) |
Called during Streamctrl->start. | |
virtual int | handle_stop (void) |
Called during Streamctrl->stop. | |
virtual int | handle_timeout (void *arg) |
Called during timeout for Flow Producers. | |
virtual int | schedule_timer (void) |
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 (void) |
Called during Streamctrl->destroy i.e tear_down of the stream. | |
virtual void | get_timeout (ACE_Time_Value *&tv, void *&arg) |
TAO_AV_Protocol_Object * | protocol_object (void) |
Accessor to protocol object. | |
virtual TAO_AV_PolicyList | get_policies (void) |
get the policies for the protocol object. | |
Protected Attributes | |
TAO_AV_Protocol_Object * | protocol_object_ |
TAO_AV_Flow_Handler * | handler_ |
Callback class that the user will be implementing for receiving frames from the network and also for timer events.
Definition at line 116 of file Policy.h.
TAO_AV_Callback::TAO_AV_Callback | ( | void | ) |
Definition at line 42 of file Policy.cpp.
:protocol_object_ (0) { }
TAO_AV_Callback::~TAO_AV_Callback | ( | void | ) | [virtual] |
Definition at line 47 of file Policy.cpp.
{ }
TAO_AV_PolicyList TAO_AV_Callback::get_policies | ( | void | ) | [virtual] |
get the policies for the protocol object.
Definition at line 114 of file Policy.cpp.
{ TAO_AV_PolicyList list; return list; }
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.
Definition at line 99 of file Policy.cpp.
{ if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_AV_Callback::get_timeout\n")); tv = 0; }
int TAO_AV_Callback::handle_destroy | ( | void | ) | [virtual] |
Called during Streamctrl->destroy i.e tear_down of the stream.
Reimplemented in TAO_AV_RTCP_Callback.
Definition at line 92 of file Policy.cpp.
{ if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_AV_Callback::handle_end_stream\n")); return -1; }
int TAO_AV_Callback::handle_start | ( | void | ) | [virtual] |
Called during Streamctrl->start.
Reimplemented in TAO_AV_RTCP_Callback.
Definition at line 62 of file Policy.cpp.
{ if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_AV_Callback::handle_start\n")); return -1; }
int TAO_AV_Callback::handle_stop | ( | void | ) | [virtual] |
Called during Streamctrl->stop.
Reimplemented in TAO_AV_RTCP_Callback.
Definition at line 69 of file Policy.cpp.
{ if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_AV_Callback::handle_stop\n")); return -1; }
int TAO_AV_Callback::handle_timeout | ( | void * | arg | ) | [virtual] |
Called during timeout for Flow Producers.
Reimplemented in TAO_AV_RTCP_Callback.
Definition at line 107 of file Policy.cpp.
{ if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_AV_Callback::handle_timeout\n")); return 0; }
int TAO_AV_Callback::open | ( | TAO_AV_Protocol_Object * | object, | |
TAO_AV_Flow_Handler * | handler | |||
) |
Called for opening the callback.
Definition at line 52 of file Policy.cpp.
{ this->protocol_object_ = object; this->handler_ = handler; handler->callback (this); return 0; }
TAO_AV_Protocol_Object * TAO_AV_Callback::protocol_object | ( | void | ) |
Accessor to protocol object.
Definition at line 133 of file Policy.cpp.
{ return this->protocol_object_; }
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.
Definition at line 85 of file Policy.cpp.
{
return 0;
}
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.
Definition at line 76 of file Policy.cpp.
{ if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_AV_Callback::receive_frame\n")); return -1; }
int TAO_AV_Callback::schedule_timer | ( | void | ) | [virtual] |
Definition at line 145 of file Policy.cpp.
{ return this->handler_->schedule_timer (); }
TAO_AV_Flow_Handler* TAO_AV_Callback::handler_ [protected] |
TAO_AV_Protocol_Object* TAO_AV_Callback::protocol_object_ [protected] |