TAO_RTEvent
2.1.8
|
Maintains information about an outgoing endpoint. More...
#include <ECG_UDP_Out_Endpoint.h>
Public Member Functions | |
TAO_ECG_UDP_Out_Endpoint (void) | |
Constructor. More... | |
~TAO_ECG_UDP_Out_Endpoint (void) | |
Constructor. More... | |
TAO_ECG_UDP_Out_Endpoint (const TAO_ECG_UDP_Out_Endpoint &rhs) | |
Copy Constructor. More... | |
TAO_ECG_UDP_Out_Endpoint & | operator= (const TAO_ECG_UDP_Out_Endpoint &rhs) |
Assignment operator. More... | |
ACE_SOCK_Dgram & | dgram (void) |
CORBA::ULong | next_request_id (void) |
Obtain the next request id. More... | |
CORBA::Boolean | is_loopback (const ACE_INET_Addr &from) |
Private Attributes | |
ACE_Atomic_Op< TAO_SYNCH_MUTEX, CORBA::ULong > | request_id_generator_ |
The request id.... More... | |
ACE_SOCK_Dgram | dgram_ |
The datagram.... More... | |
u_short | port_number_ |
size_t | if_count_ |
ACE_INET_Addr * | ifs_ |
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.
TAO_ECG_UDP_Out_Endpoint::TAO_ECG_UDP_Out_Endpoint | ( | void | ) |
Constructor.
TAO_ECG_UDP_Out_Endpoint::~TAO_ECG_UDP_Out_Endpoint | ( | void | ) |
Constructor.
TAO_ECG_UDP_Out_Endpoint::TAO_ECG_UDP_Out_Endpoint | ( | const TAO_ECG_UDP_Out_Endpoint & | rhs | ) |
Copy Constructor.
ACE_SOCK_Dgram& TAO_ECG_UDP_Out_Endpoint::dgram | ( | void | ) |
Obtain the datagram associated with this endpoint. Clients of this class must open, and register (if necessary) this datagram.
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.
CORBA::ULong TAO_ECG_UDP_Out_Endpoint::next_request_id | ( | void | ) |
Obtain the next request id.
TAO_ECG_UDP_Out_Endpoint & TAO_ECG_UDP_Out_Endpoint::operator= | ( | const TAO_ECG_UDP_Out_Endpoint & | rhs | ) |
Assignment operator.
|
private |
The datagram....
|
private |
Keep the list of local interfaces, needed for the is_loopback method.
|
private |
|
private |
Cache the port-number so we can quickly determine if an event is coming from another endpoint.
|
private |
The request id....