TAO_RTEvent  3.0.0
Public Member Functions | Private Attributes | List of all members
TAO_ECG_UDP_Out_Endpoint Class Reference

Maintains information about an outgoing endpoint. More...

#include <ECG_UDP_Out_Endpoint.h>

Collaboration diagram for TAO_ECG_UDP_Out_Endpoint:
Collaboration graph
[legend]

Public Member Functions

 TAO_ECG_UDP_Out_Endpoint ()
 Constructor. More...
 
 ~TAO_ECG_UDP_Out_Endpoint ()
 Constructor. More...
 
 TAO_ECG_UDP_Out_Endpoint (const TAO_ECG_UDP_Out_Endpoint &rhs)
 Copy Constructor. More...
 
TAO_ECG_UDP_Out_Endpointoperator= (const TAO_ECG_UDP_Out_Endpoint &rhs)
 Assignment operator. More...
 
ACE_SOCK_Dgramdgram ()
 
CORBA::ULong next_request_id ()
 Obtain the next request id. More...
 
CORBA::Boolean is_loopback (const ACE_INET_Addr &from)
 

Private Attributes

ACE_Atomic_Op< TAO_SYNCH_MUTEX, CORBA::ULongrequest_id_generator_
 The request id.... More...
 
ACE_SOCK_Dgram dgram_
 The datagram.... More...
 
u_short port_number_
 
size_t if_count_
 
ACE_INET_Addrifs_
 

Detailed Description

Maintains information about an outgoing endpoint.

UDP senders can share a single endpoint to send UDP packets, but there is more state associated with this endpoint than its datagram SAP; for instance we need to keep track of the request id.

Constructor & Destructor Documentation

◆ TAO_ECG_UDP_Out_Endpoint() [1/2]

TAO_ECG_UDP_Out_Endpoint::TAO_ECG_UDP_Out_Endpoint ( )

Constructor.

◆ ~TAO_ECG_UDP_Out_Endpoint()

TAO_ECG_UDP_Out_Endpoint::~TAO_ECG_UDP_Out_Endpoint ( )

Constructor.

◆ TAO_ECG_UDP_Out_Endpoint() [2/2]

TAO_ECG_UDP_Out_Endpoint::TAO_ECG_UDP_Out_Endpoint ( const TAO_ECG_UDP_Out_Endpoint rhs)

Copy Constructor.

Member Function Documentation

◆ dgram()

ACE_SOCK_Dgram& TAO_ECG_UDP_Out_Endpoint::dgram ( )

Obtain the datagram associated with this endpoint. Clients of this class must open, and register (if necessary) this datagram.

◆ is_loopback()

CORBA::Boolean TAO_ECG_UDP_Out_Endpoint::is_loopback ( const ACE_INET_Addr from)

The endpoint can detect if a data-gram was sent by itself, this is useful to ignore or remove messages sent by the same process.

◆ next_request_id()

CORBA::ULong TAO_ECG_UDP_Out_Endpoint::next_request_id ( )

Obtain the next request id.

◆ operator=()

TAO_ECG_UDP_Out_Endpoint & TAO_ECG_UDP_Out_Endpoint::operator= ( const TAO_ECG_UDP_Out_Endpoint rhs)

Assignment operator.

Member Data Documentation

◆ dgram_

ACE_SOCK_Dgram TAO_ECG_UDP_Out_Endpoint::dgram_
private

The datagram....

◆ if_count_

size_t TAO_ECG_UDP_Out_Endpoint::if_count_
private

Keep the list of local interfaces, needed for the is_loopback method.

◆ ifs_

ACE_INET_Addr* TAO_ECG_UDP_Out_Endpoint::ifs_
private

◆ port_number_

u_short TAO_ECG_UDP_Out_Endpoint::port_number_
private

Cache the port-number so we can quickly determine if an event is coming from another endpoint.

◆ request_id_generator_

ACE_Atomic_Op<TAO_SYNCH_MUTEX,CORBA::ULong> TAO_ECG_UDP_Out_Endpoint::request_id_generator_
private

The request id....


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