TAO_AV_Transport Class Reference

A Base class for the different transport protocols. All the different transports should derive and implement the open,close,send and recv methods. More...

#include <Transport.h>

Inheritance diagram for TAO_AV_Transport:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 TAO_AV_Transport (void)
virtual ~TAO_AV_Transport (void)
virtual int open (ACE_Addr *address)=0
virtual int close (void)=0
virtual int mtu (void)=0
 Write the complete Message_Block chain to the connection.
virtual ACE_Addrget_peer_addr (void)=0
virtual ACE_Addrget_local_addr (void)
virtual ssize_t send (const ACE_Message_Block *mblk, ACE_Time_Value *s=0)=0
virtual ssize_t send (const char *buf, size_t len, ACE_Time_Value *s=0)=0
 Write the contents of the buffer of length len to the connection.
virtual ssize_t send (const iovec *iov, int iovcnt, ACE_Time_Value *s=0)=0
 Write the contents of iovcnt iovec's to the connection.
virtual ssize_t recv (char *buf, size_t len, ACE_Time_Value *s=0)=0
 Read len bytes from into buf.
virtual ssize_t recv (char *buf, size_t len, int flags, ACE_Time_Value *s=0)=0
 Read len bytes from into buf using flags.
virtual ssize_t recv (iovec *iov, int iovcnt, ACE_Time_Value *s=0)=0
 Read received data into the iovec buffers.

Detailed Description

A Base class for the different transport protocols. All the different transports should derive and implement the open,close,send and recv methods.

Definition at line 162 of file Transport.h.


Constructor & Destructor Documentation

TAO_AV_Transport::TAO_AV_Transport ( void   ) 

Definition at line 468 of file Transport.cpp.

00469 {
00470 }

TAO_AV_Transport::~TAO_AV_Transport ( void   )  [virtual]

Definition at line 473 of file Transport.cpp.

00474 {
00475 }


Member Function Documentation

virtual int TAO_AV_Transport::close ( void   )  [pure virtual]

Implemented in TAO_AV_UDP_MCast_Transport, TAO_AV_TCP_Transport, and TAO_AV_UDP_Transport.

ACE_Addr * TAO_AV_Transport::get_local_addr ( void   )  [virtual]

Reimplemented in TAO_AV_UDP_MCast_Transport.

Definition at line 478 of file Transport.cpp.

00479 {
00480   return 0;
00481 }

virtual ACE_Addr* TAO_AV_Transport::get_peer_addr ( void   )  [pure virtual]

Implemented in TAO_AV_UDP_MCast_Transport, TAO_AV_TCP_Transport, and TAO_AV_UDP_Transport.

Referenced by TAO_AV_RTP_Object::handle_input(), and TAO_AV_RTCP_Object::handle_input().

virtual int TAO_AV_Transport::mtu ( void   )  [pure virtual]

Write the complete Message_Block chain to the connection.

Implemented in TAO_AV_UDP_MCast_Transport, TAO_AV_TCP_Transport, and TAO_AV_UDP_Transport.

Referenced by TAO_AV_RTCP_Object::handle_input().

virtual int TAO_AV_Transport::open ( ACE_Addr address  )  [pure virtual]

Implemented in TAO_AV_UDP_MCast_Transport, TAO_AV_TCP_Transport, and TAO_AV_UDP_Transport.

virtual ssize_t TAO_AV_Transport::recv ( iovec *  iov,
int  iovcnt,
ACE_Time_Value s = 0 
) [pure virtual]

Read received data into the iovec buffers.

Implemented in TAO_AV_UDP_MCast_Transport, TAO_AV_TCP_Transport, and TAO_AV_UDP_Transport.

virtual ssize_t TAO_AV_Transport::recv ( char *  buf,
size_t  len,
int  flags,
ACE_Time_Value s = 0 
) [pure virtual]

Read len bytes from into buf using flags.

Implemented in TAO_AV_UDP_MCast_Transport, TAO_AV_TCP_Transport, and TAO_AV_UDP_Transport.

virtual ssize_t TAO_AV_Transport::recv ( char *  buf,
size_t  len,
ACE_Time_Value s = 0 
) [pure virtual]

Read len bytes from into buf.

Implemented in TAO_AV_UDP_MCast_Transport, TAO_AV_TCP_Transport, and TAO_AV_UDP_Transport.

Referenced by TAO_AV_UDP_Object::handle_input(), TAO_AV_TCP_Object::handle_input(), TAO_SFP_Producer_Object::handle_input(), TAO_AV_RTP_Object::handle_input(), TAO_AV_RTCP_Object::handle_input(), TAO_SFP_Base::peek_fragment_header(), TAO_SFP_Base::peek_frame_header(), TAO_SFP_Base::peek_message_type(), TAO_SFP_Base::read_credit_message(), TAO_SFP_Base::read_endofstream_message(), TAO_SFP_Base::read_fragment(), TAO_SFP_Base::read_frame(), TAO_SFP_Base::read_start_message(), and TAO_SFP_Base::read_start_reply_message().

virtual ssize_t TAO_AV_Transport::send ( const iovec *  iov,
int  iovcnt,
ACE_Time_Value s = 0 
) [pure virtual]

Write the contents of iovcnt iovec's to the connection.

Implemented in TAO_AV_UDP_MCast_Transport, TAO_AV_TCP_Transport, and TAO_AV_UDP_Transport.

virtual ssize_t TAO_AV_Transport::send ( const char *  buf,
size_t  len,
ACE_Time_Value s = 0 
) [pure virtual]

Write the contents of the buffer of length len to the connection.

Implemented in TAO_AV_UDP_MCast_Transport, TAO_AV_TCP_Transport, and TAO_AV_UDP_Transport.

virtual ssize_t TAO_AV_Transport::send ( const ACE_Message_Block mblk,
ACE_Time_Value s = 0 
) [pure virtual]

Implemented in TAO_AV_UDP_MCast_Transport, TAO_AV_TCP_Transport, and TAO_AV_UDP_Transport.

Referenced by TAO_AV_UDP_Object::send_frame(), TAO_AV_TCP_Object::send_frame(), TAO_AV_RTP_Object::send_frame(), TAO_AV_RTCP_Object::send_frame(), and TAO_SFP_Base::send_message().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:48:06 2010 for TAO_AV by  doxygen 1.4.7