public class Locator extends Object
Modifier and Type | Field and Description |
---|---|
static int |
LOCATOR_KIND_INVALID
An invalid Locator kind
|
static int |
LOCATOR_KIND_UDPv4
This kind is used for communication with UDPv4
|
static int |
LOCATOR_KIND_UDPv6
This kind is used for communication with UDPv6
|
Constructor and Description |
---|
Locator(InetAddress addr,
int port) |
Locator(int kind,
int port,
byte[] address)
Create new Locator.
|
Locator(RTPSByteBuffer is) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
byte[] |
getAddress()
Gets the address of this Locator.
|
int |
getKind()
Gets the kind of this Locator.
|
int |
getPort()
Gets the port of this Locator.
|
int |
hashCode() |
boolean |
isMulticastLocator() |
String |
toString() |
void |
writeTo(RTPSByteBuffer buffer) |
public static final int LOCATOR_KIND_UDPv4
public static final int LOCATOR_KIND_UDPv6
public static final int LOCATOR_KIND_INVALID
public Locator(InetAddress addr, int port)
public Locator(RTPSByteBuffer is)
public Locator(int kind, int port, byte[] address)
kind
- Kindport
- portaddress
- address must be an array of length 16IllegalArgumentException
- if address is not of length 16public int getKind()
public int getPort()
public byte[] getAddress()
public void writeTo(RTPSByteBuffer buffer)
public boolean isMulticastLocator()
Copyright © 2016. All rights reserved.