OpenDDS::DCPS::AssociationData Struct Reference

#include <AssociationData.h>

Collaboration diagram for OpenDDS::DCPS::AssociationData:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AssociationData ()

Static Public Member Functions

static ACE_INET_Addr get_remote_address (const TransportBLOB &remote)

Public Attributes

RepoId remote_id_
TransportLocatorSeq remote_data_
Priority publication_transport_priority_
bool remote_reliable_
bool remote_durable_

Detailed Description

Definition at line 21 of file AssociationData.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::AssociationData::AssociationData (  )  [inline]

Definition at line 27 of file AssociationData.h.

00028     : remote_id_(GUID_UNKNOWN)
00029     , publication_transport_priority_(0)
00030     , remote_reliable_(false)
00031     , remote_durable_(false)
00032   {}


Member Function Documentation

static ACE_INET_Addr OpenDDS::DCPS::AssociationData::get_remote_address ( const TransportBLOB remote  )  [inline, static]

Definition at line 34 of file AssociationData.h.

References ACE_TEXT(), LM_ERROR, and OpenDDS::DCPS::NetworkAddress::to_addr().

Referenced by OpenDDS::DCPS::TcpTransport::blob_to_key().

00035   {
00036     ACE_INET_Addr remote_address;
00037     NetworkAddress network_order_address;
00038 
00039     // Get the remote address from the "blob" in the remote_info struct.
00040     ACE_InputCDR cdr((const char*)remote.get_buffer(),
00041                                   remote.length());
00042 
00043     if ((cdr >> network_order_address) == 0) {
00044       ACE_ERROR((LM_ERROR,
00045                  ACE_TEXT("(%P|%t) ERROR: AssociationData::get_remote_address")
00046                  ACE_TEXT(" failed to de-serialize the NetworkAddress\n")));
00047     } else {
00048       network_order_address.to_addr(remote_address);
00049     }
00050 
00051     return remote_address;
00052   }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1