UDP link agent provides UDP based link implementation.
Services:
Capabilities:
Parameters:
Modifiers | Name | Description |
---|---|---|
static String |
description |
|
static String |
title |
Type Params | Return Type | Name and description |
---|---|---|
|
float |
getDataRate() Get data rate. |
|
int |
getMTU() Get maximum frame size. |
|
int |
getMonitorTimeout() Gets the monitor socket timeout in ms. |
|
String |
getMulticastAddr() Gets the multicast address. |
|
String |
getMulticastIface() Gets the multicast network interface. |
|
int |
getMulticastPort() Gets the multicast port number. |
|
int |
getMulticastTTL() Gets the multicast time to live. |
|
protected List<Parameter> |
getParameterList() Returns list of all link parameters. |
|
int |
getRetries() Gets the maximum number of retries for delivery. |
|
float |
getTimeout() Gets the delivery timeout in seconds. |
|
protected void |
processMessage(Message msg) Process messages other than requests. |
|
protected Message |
processRequest(Message msg) Handles incoming DatagramReq requests. |
|
void |
setDataRate(float r) Set data rate. |
|
void |
setMonitorTimeout(int monitorTimeout) Sets monitor socket timeout in ms. |
|
void |
setMulticastAddr(String multicastAddr) Sets the multicast address. |
|
void |
setMulticastIface(String multicastIface) Sets multicast network interface. |
|
void |
setMulticastPort(int multicastPort) Sets multicast port number. |
|
void |
setMulticastTTL(int multicastTTL) Sets multicast time to live. |
|
void |
setRetries(int retries) Sets the maximum number of retries for delivery. |
|
void |
setTimeout(float timeout) Sets delivery timeout in seconds. |
|
protected void |
setup() |
|
void |
shutdown() |
|
void |
startup() |
Get data rate.
Get maximum frame size.
Gets the monitor socket timeout in ms.
Gets the multicast address.
Gets the multicast network interface.
Gets the multicast port number.
Gets the multicast time to live.
Returns list of all link parameters.
Gets the maximum number of retries for delivery.
Gets the delivery timeout in seconds.
Process messages other than requests.
msg
- incoming message.Handles incoming DatagramReq requests.
msg
- incoming request.Set 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 the multicast address.
multicastAddr
- multicast addressSets multicast network interface.
multicastIface
- multicast network interfaceSets multicast port number.
multicastPort
- multicast port numberSets multicast time to live.
multicastTTL
- multicast time to liveSets the maximum number of retries for delivery.
retries
- retry countSets delivery timeout in seconds.
timeout
- timeout