OpenDDS
Snapshot(2023/04/07-19:43)
|
Defines a wrapper around address info which is used for advertise. More...
#include <NetworkResource.h>
Public Member Functions | |
NetworkResource () | |
NetworkResource (const ACE_INET_Addr &addr) | |
NetworkResource (const String &addr) | |
~NetworkResource () | |
void | dump () const |
void | to_addr (ACE_INET_Addr &addr) const |
Public Attributes | |
CORBA::Octet | reserved_ |
String | addr_ |
The address in string format. e.g. ip:port, hostname:port. More... | |
Defines a wrapper around address info which is used for advertise.
This is used to send/receive an address information through transport.
Definition at line 45 of file NetworkResource.h.
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE OpenDDS::DCPS::NetworkResource::NetworkResource | ( | ) |
|
explicit |
Definition at line 23 of file NetworkResource.inl.
References ACE_INLINE, ACE_TEXT_ALWAYS_CHAR, addr_, ACE_INET_Addr::addr_to_string(), DBG_ENTRY_LVL, and MAXHOSTNAMELEN.
|
explicit |
Definition at line 35 of file NetworkResource.inl.
References ACE_INLINE, addr_, and DBG_ENTRY_LVL.
ACE_INLINE OpenDDS::DCPS::NetworkResource::~NetworkResource | ( | ) |
ACE_INLINE void OpenDDS::DCPS::NetworkResource::dump | ( | void | ) | const |
Definition at line 57 of file NetworkResource.inl.
References ACE_DEBUG, addr_, LM_DEBUG, OPENDDS_END_VERSIONED_NAMESPACE_DECL, and reserved_.
ACE_INLINE void OpenDDS::DCPS::NetworkResource::to_addr | ( | ACE_INET_Addr & | addr | ) | const |
Accessor to populate the provided ACE_INET_Addr object from the address string received through transport.
Definition at line 49 of file NetworkResource.inl.
References ACE_INLINE, addr_, OpenDDS::DCPS::choose_single_coherent_address(), DBG_ENTRY_LVL, ACE_INET_Addr::get_host_addr(), LM_DEBUG, and VDBG_LVL.
Referenced by OpenDDS::DCPS::UdpTransport::blob_to_key(), OpenDDS::DCPS::UdpTransport::get_connection_addr(), and OpenDDS::DCPS::AssociationData::get_remote_address().
String OpenDDS::DCPS::NetworkResource::addr_ |
The address in string format. e.g. ip:port, hostname:port.
Definition at line 63 of file NetworkResource.h.
Referenced by dump(), NetworkResource(), operator<<(), operator>>(), and to_addr().
CORBA::Octet OpenDDS::DCPS::NetworkResource::reserved_ |
Reserve byte for some feature supports in the future. e.g. version support.
Definition at line 60 of file NetworkResource.h.
Referenced by dump(), operator<<(), and operator>>().