RTI Connext C# API Version 7.2.0
Rti.Dds.Core.Locator Class Reference

Type used to represent the addressing information needed to send a message to an RTPS Endpoint using one of the supported transports. More...

Inherits IEquatable< Locator >.

Public Member Functions

Locator With (Action< LocatorBuilder > build)
 Creates a new Locator with a set of changes specified in an Action More...
 
override int GetHashCode ()
 Gets the hash code More...
 
override bool Equals (object other)
 Compares for equality More...
 
bool Equals (Locator other)
 Compares for equality More...
 

Static Public Attributes

const int InvalidKind = -1
 Locator of this kind is invalid. More...
 
const uint InvalidPort = 0
 An invalid port. More...
 
const int UdPv4Kind = 1
 A locator for a UDPv4 address. More...
 
const int UdPv4WanKind = 0x01000001
 A locator for a UDPv4 WAN address. More...
 
const int ShmemKind = 0x01000000
 A locator for an address accessed via shared memory. More...
 
const int Shmem510Kind = 2
 A locator for an address accessed via shared memory for RTI Connext 5.1.0 and earlier. More...
 
const int UdPv6Kind = 2
 A locator for a UDPv6 address. More...
 
const int UdPv6510Kind = 5
 A locator for a UDPv6 address for RTI Connext 5.1.0 and earlier. More...
 
const int ReservedKind = 1000
 Locator of this kind is reserved. More...
 

Properties

static Locator LocatorInvalid [get]
 An invalid locator. More...
 
static ImmutableList< byte > InvalidAddress [get]
 An invalid address. More...
 
int Kind [get]
 The kind of locator. More...
 
uint Port [get]
 The port number. More...
 
ImmutableList< byte > Address [get]
 The IP address. More...
 
static Locator Default [get]
 Singleton containing the default value of a Locator More...
 

Detailed Description

Type used to represent the addressing information needed to send a message to an RTPS Endpoint using one of the supported transports.

The full documentation is available in the C API: DDS_Locator_t

Member Function Documentation

◆ With()

Locator Rti.Dds.Core.Locator.With ( Action< LocatorBuilder build)
inline

Creates a new Locator with a set of changes specified in an Action

Parameters
buildAn Action (typically a lambda function) that receives a modifiable object with the current values of this Locator.
Returns
A new Locator with the changes applied by the Action

◆ GetHashCode()

override int Rti.Dds.Core.Locator.GetHashCode ( )
inline

Gets the hash code

◆ Equals() [1/2]

override bool Rti.Dds.Core.Locator.Equals ( object  other)

Compares for equality

◆ Equals() [2/2]

bool Rti.Dds.Core.Locator.Equals ( Locator  other)
inline

Compares for equality

Field Documentation

◆ InvalidKind

const int Rti.Dds.Core.Locator.InvalidKind = -1
static

Locator of this kind is invalid.

The full documentation is available in the C API: DDS_Locator_t_KIND_INVALID

◆ InvalidPort

const uint Rti.Dds.Core.Locator.InvalidPort = 0
static

An invalid port.

The full documentation is available in the C API: DDS_Locator_t_PORT_INVALID

◆ UdPv4Kind

const int Rti.Dds.Core.Locator.UdPv4Kind = 1
static

A locator for a UDPv4 address.

The full documentation is available in the C API: DDSLocator_tLOCATOR_KIND_UDPv4

◆ UdPv4WanKind

const int Rti.Dds.Core.Locator.UdPv4WanKind = 0x01000001
static

A locator for a UDPv4 WAN address.

The full documentation is available in the C API: DDSLocator_tLOCATOR_KIND_UDPv4_WAN

◆ ShmemKind

const int Rti.Dds.Core.Locator.ShmemKind = 0x01000000
static

A locator for an address accessed via shared memory.

The full documentation is available in the C API: DDS_Locator_t_KIND_SHMEM

◆ Shmem510Kind

const int Rti.Dds.Core.Locator.Shmem510Kind = 2
static

A locator for an address accessed via shared memory for RTI Connext 5.1.0 and earlier.

The full documentation is available in the C API: DDS_Locator_t_KIND_SHMEM_510

◆ UdPv6Kind

const int Rti.Dds.Core.Locator.UdPv6Kind = 2
static

A locator for a UDPv6 address.

The full documentation is available in the C API: DDSLocator_tLOCATOR_KIND_UDPv6

◆ UdPv6510Kind

const int Rti.Dds.Core.Locator.UdPv6510Kind = 5
static

A locator for a UDPv6 address for RTI Connext 5.1.0 and earlier.

The full documentation is available in the C API: DDSLocator_tLOCATOR_KIND_UDPv6_510

◆ ReservedKind

const int Rti.Dds.Core.Locator.ReservedKind = 1000
static

Locator of this kind is reserved.

The full documentation is available in the C API: DDSLocator_tLOCATOR_KIND_RESERVED

Property Documentation

◆ LocatorInvalid

Locator Rti.Dds.Core.Locator.LocatorInvalid
staticget

An invalid locator.

The full documentation is available in the C API: DDSLocator_tLOCATOR_INVALID

◆ InvalidAddress

ImmutableList<byte> Rti.Dds.Core.Locator.InvalidAddress
staticget

An invalid address.

The full documentation is available in the C API: DDS_Locator_t_ADDRESS_INVALID

◆ Kind

int Rti.Dds.Core.Locator.Kind
get

The kind of locator.

The full documentation is available in the C API: DDS_Locator_t_kind

◆ Port

uint Rti.Dds.Core.Locator.Port
get

The port number.

The full documentation is available in the C API: DDS_Locator_t_port

◆ Address

ImmutableList<byte> Rti.Dds.Core.Locator.Address
get

The IP address.

The full documentation is available in the C API: DDS_Locator_t_address

◆ Default

Locator Rti.Dds.Core.Locator.Default
staticget

Singleton containing the default value of a Locator