#include <Protocol_Factory.h>
Inheritance diagram for TAO_AV_Protocol_Object:
Public Member Functions | |
TAO_AV_Protocol_Object (void) | |
TAO_AV_Protocol_Object (TAO_AV_Callback *callback, TAO_AV_Transport *transport) | |
constructor. | |
virtual | ~TAO_AV_Protocol_Object (void) |
Destructor. | |
virtual int | open (TAO_AV_Callback *callback, TAO_AV_Transport *transport) |
virtual int | handle_input (void)=0 |
virtual int | handle_control_input (ACE_Message_Block *control_frame, const ACE_Addr &peer_address) |
Called on a control object. | |
virtual int | set_policies (const TAO_AV_PolicyList &policy_list) |
set/get policies. | |
virtual TAO_AV_PolicyList | get_policies (void) |
virtual int | start (void) |
start/stop the flow. | |
virtual int | stop (void) |
virtual int | send_frame (ACE_Message_Block *frame, TAO_AV_frame_info *frame_info=0)=0 |
send a data frame. | |
virtual int | send_frame (const iovec *iov, int iovcnt, TAO_AV_frame_info *frame_info=0)=0 |
send a frame in iovecs. | |
virtual int | send_frame (const char *buf, size_t len)=0 |
virtual void | control_object (TAO_AV_Protocol_Object *object) |
end the stream. | |
virtual int | destroy (void)=0 |
TAO_AV_Transport * | transport (void) |
Protected Attributes | |
TAO_AV_Transport * | transport_ |
TAO_AV_PolicyList | policy_list_ |
TAO_AV_Callback * | callback_ |
|
Definition at line 51 of file Protocol_Factory.cpp.
00052 :transport_ (0), 00053 callback_ (0) 00054 { 00055 // no-op. 00056 } |
|
constructor.
Definition at line 58 of file Protocol_Factory.cpp.
00060 :transport_ (transport), 00061 callback_ (callback) 00062 { 00063 // no-op. 00064 } |
|
Destructor.
Definition at line 75 of file Protocol_Factory.cpp.
00076 { 00077 } |
|
end the stream.
Reimplemented in TAO_AV_RTP_Object. Definition at line 117 of file Protocol_Factory.cpp. Referenced by TAO_AV_Acceptor_Registry::open(), TAO_AV_Connector_Registry::open(), and TAO_AV_Acceptor_Registry::open_default().
00118 {
00119 return;
00120 }
|
|
Implemented in TAO_AV_RTCP_Object, TAO_AV_RTP_Object, TAO_SFP_Object, TAO_AV_TCP_Object, and TAO_AV_UDP_Object. Referenced by TAO_AV_RTP_Object::destroy(). |
|
Definition at line 99 of file Protocol_Factory.cpp.
00100 { 00101 return this->policy_list_; 00102 } |
|
Called on a control object.
Reimplemented in TAO_AV_RTCP_Object. Definition at line 123 of file Protocol_Factory.cpp. References ACE_DEBUG, LM_DEBUG, and TAO_debug_level. Referenced by TAO_AV_RTP_Object::handle_input().
00125 { 00126 if (TAO_debug_level > 0) 00127 ACE_DEBUG ((LM_DEBUG,"TAO_AV_Protocol_Object::handle_control_input\n")); 00128 return 0; 00129 } |
|
|
Definition at line 67 of file Protocol_Factory.cpp. Referenced by TAO_AV_UDP_Flow_Factory::make_protocol_object(), TAO_AV_TCP_Flow_Factory::make_protocol_object(), and TAO_AV_RTP_Flow_Factory::make_protocol_object().
00069 { 00070 this->callback_ = callback; 00071 this->transport_ = transport; 00072 return 0; 00073 } |
|
Implemented in TAO_AV_RTCP_Object, TAO_AV_RTP_Object, TAO_SFP_Object, TAO_AV_TCP_Object, and TAO_AV_UDP_Object. |
|
send a frame in iovecs.
Implemented in TAO_AV_RTCP_Object, TAO_AV_RTP_Object, TAO_SFP_Object, TAO_AV_TCP_Object, and TAO_AV_UDP_Object. |
|
send a data frame.
Implemented in TAO_AV_RTCP_Object, TAO_AV_RTP_Object, TAO_SFP_Object, TAO_AV_TCP_Object, and TAO_AV_UDP_Object. Referenced by TAO_AV_RTCP_Callback::send_report(). |
|
set/get policies.
Reimplemented in TAO_AV_RTCP_Object, TAO_AV_RTP_Object, and TAO_SFP_Object. Definition at line 92 of file Protocol_Factory.cpp. References TAO_AV_PolicyList.
00093 { 00094 this->policy_list_ = policy_list; 00095 return 0; 00096 } |
|
start/stop the flow.
Reimplemented in TAO_AV_RTCP_Object, and TAO_AV_RTP_Object. Definition at line 80 of file Protocol_Factory.cpp. References TAO_AV_Callback::handle_start(). Referenced by TAO_AV_RTP_Object::start().
00081 { 00082 return this->callback_->handle_start (); 00083 } |
|
Reimplemented in TAO_AV_RTCP_Object, and TAO_AV_RTP_Object. Definition at line 86 of file Protocol_Factory.cpp. References TAO_AV_Callback::handle_stop(). Referenced by TAO_AV_RTP_Object::stop().
00087 { 00088 return this->callback_->handle_stop (); 00089 } |
|
Definition at line 105 of file Protocol_Factory.cpp.
00106 { 00107 return this->transport_; 00108 } |
|
Definition at line 77 of file Protocol_Factory.h. |
|
Definition at line 76 of file Protocol_Factory.h. |
|
Definition at line 75 of file Protocol_Factory.h. |