|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UDPTerminal
Interface defining a UDPTerminal.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
byte[] receiveMessage()
throws Exception
Exception - if receiving a message fails.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||