public interface UDPTerminal
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activate this UDPTerminal.
|
void |
deactivate()
Deactivates this UDPTerminal.
|
InetAddress |
getLocalAddress()
Returns the local address of this UDPTerminal.
|
int |
getLocalPort()
Returns the local port of this UDPTerminal.
|
ModbusUDPTransport |
getModbusTransport()
Returns the ModbusTransport associated with this
UDPTerminal.
|
boolean |
isActive()
Tests if this UDPTerminal is active.
|
byte[] |
receiveMessage()
Receives and returns a message.
|
void |
sendMessage(byte[] msg)
Sends the given message.
|
InetAddress getLocalAddress()
int getLocalPort()
boolean isActive()
void activate()
throws Exception
Exception - if there is a network failure.void deactivate()
ModbusUDPTransport getModbusTransport()
void sendMessage(byte[] msg)
throws Exception
msg - the message as byte[].Exception - if sending the message fails.Copyright © 2017. All rights reserved.