TAO_AV 4.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TAO_AV_Transport Class Referenceabstract

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]

Public Member Functions

 TAO_AV_Transport ()
 
virtual ~TAO_AV_Transport ()
 
virtual int open (ACE_Addr *address)=0
 
virtual int close ()=0
 
virtual int mtu ()=0
 Write the complete Message_Block chain to the connection.
 
virtual ACE_Addrget_peer_addr ()=0
 
virtual ACE_Addrget_local_addr ()
 
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.

Constructor & Destructor Documentation

◆ TAO_AV_Transport()

TAO_AV_Transport::TAO_AV_Transport ( )

◆ ~TAO_AV_Transport()

TAO_AV_Transport::~TAO_AV_Transport ( )
virtual

Member Function Documentation

◆ close()

virtual int TAO_AV_Transport::close ( )
pure virtual

◆ get_local_addr()

ACE_Addr * TAO_AV_Transport::get_local_addr ( )
virtual

Reimplemented in TAO_AV_UDP_MCast_Transport.

◆ get_peer_addr()

virtual ACE_Addr * TAO_AV_Transport::get_peer_addr ( )
pure virtual

◆ mtu()

virtual int TAO_AV_Transport::mtu ( )
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.

◆ open()

virtual int TAO_AV_Transport::open ( ACE_Addr * address)
pure virtual

◆ recv() [1/3]

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.

◆ recv() [2/3]

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.

◆ recv() [3/3]

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.

◆ send() [1/3]

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

◆ send() [2/3]

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.

◆ send() [3/3]

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.


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