UDP link agent provides UDP based link implementation.
Modifiers | Name | Description |
---|---|---|
static String |
description |
|
static String |
title |
Type Params | Return Type | Name and description |
---|---|---|
|
String |
getAddress(int node) Gets the IP address of a peer Unet node. |
|
int |
getAdvertise() Gets the advertisement interval. |
|
String |
getBroadcastAddress() Gets the network broadcast address. |
|
float |
getDataRate() Get data rate. |
|
int |
getMTU() Get maximum frame size. |
|
int |
getMonitorTimeout() Gets the monitor socket timeout in ms. |
|
protected List<Parameter> |
getParameterList() |
|
protected List<Parameter> |
getParameterList(int ndx) |
|
int |
getPort() Gets the port number. |
|
int |
getPort(int node) Gets the UDP port number used by UdpLink on a peer Unet node. |
|
int |
getRTU() Get recommended frame size. |
|
int |
getRetries() Gets the maximum number of retries for delivery. |
|
float |
getTimeout() Gets the delivery timeout in seconds. |
|
protected void |
processMessage(Message msg) |
|
protected Message |
processRequest(Message msg) |
|
String |
setAddress(int node, String addr) Sets the IP address of a peer Unet node. |
|
int |
setAdvertise(int t) Sets the advertisement interval. |
|
void |
setBroadcastAddress(String addr) Sets the network broadcast address. |
|
void |
setDataRate(float r) Set data rate. |
|
void |
setMonitorTimeout(int monitorTimeout) Sets monitor socket timeout in ms. |
|
void |
setPort(int port) Sets port number. |
|
int |
setPort(int node, int port) Sets the UDP port number used by UdpLink on a peer Unet node. |
|
int |
setRetries(int retries) Sets the maximum number of retries for delivery. |
|
float |
setTimeout(float timeout) Sets delivery timeout in seconds. |
|
protected void |
setup() |
|
void |
shutdown() |
|
void |
startup() |
Methods inherited from class | Name |
---|---|
class UnetAgent |
addCapability, allOf, deregister, deregister, die, get, get, getBuildInfo, getLogLevel, getParam, getParameterClasses, getParameterClasses, getParameterList, getParameterList, getServices, getTitle, getVersion, init, isReadOnly, longValue, processMessage, processQuery, processRequest, register, register, set, set, setLogLevel, setParam, setup, shutdown, startup, subscribeForService, subscribeForService, trace, trace, trace, unsubscribeForService, unsubscribeForService |
Gets the IP address of a peer Unet node.
node
- Unet address of peer nodeGets the advertisement interval.
Gets the network broadcast address.
Get data rate.
Get maximum frame size.
Gets the monitor socket timeout in ms.
Gets the port number.
Gets the UDP port number used by UdpLink on a peer Unet node.
node
- Unet address of peer nodeGet recommended frame size.
Gets the maximum number of retries for delivery.
Gets the delivery timeout in seconds.
Sets the IP address of a peer Unet node.
Hostname or IP address may be specified to include a port number, separared by a ":". A "(unknown)" address removes the mapping.
node
- Unet address of peer nodeaddr
- hostname or IP address of peer nodeSets the advertisement interval.
t
- advertisement interval in seconds (0 = disable)Sets the network broadcast address.
addr
- broadcast addressSet data rate. Since UDP data rate is generally not known at the node, we allow a user to set a rate based on knowledge of the network.
r
- data rate in bps (0 if unknown)Sets monitor socket timeout in ms. This can only be changed during agent creation, before the agent is started.
monitorTimeout
- monitor timeoutSets port number.
port
- port numberSets the UDP port number used by UdpLink on a peer Unet node.
node
- Unet address of peer nodeport
- UDP port number used by peer nodeSets the maximum number of retries for delivery.
retries
- retry countSets delivery timeout in seconds.
timeout
- timeout