NetworkAddress.cpp File Reference

#include "DCPS/DdsDcps_pch.h"
#include "NetworkAddress.h"
#include "ace/OS_NS_netdb.h"
#include "ace/Sock_Connect.h"
#include "NetworkAddress.inl"

Include dependency graph for NetworkAddress.cpp:


Functions

ACE_CDR::Boolean operator<< (ACE_OutputCDR &outCdr, OpenDDS::DCPS::NetworkAddress &value)
 Marshal into a buffer.
ACE_CDR::Boolean operator>> (ACE_InputCDR &inCdr, OpenDDS::DCPS::NetworkAddress &value)
 Demarshal from a buffer.
const std::string & get_fully_qualified_hostname ()

Function Documentation

const std::string& get_fully_qualified_hostname (  ) 

Helper function to get the fully qualified hostname. It attempts to discover the FQDN by the network interface addresses, however the result is impacted by the network configuration, so it returns name in the order whoever is found first - FQDN, short hostname, name resolved from loopback address. In the case using short hostname or name resolved from loopback, a warning is logged. If there is no any name discovered from network interfaces, an error is logged.

ACE_CDR::Boolean operator<< ( ACE_OutputCDR &  outCdr,
OpenDDS::DCPS::NetworkAddress value 
)

Marshal into a buffer.

ACE_CDR::Boolean operator>> ( ACE_InputCDR &  inCdr,
OpenDDS::DCPS::NetworkAddress value 
)

Demarshal from a buffer.


Generated on Fri Nov 7 09:36:18 2008 for OpenDDS by  doxygen 1.4.7