|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.modbus.io.ModbusUDPTransport
public class ModbusUDPTransport
Class that implements the Modbus UDP transport flavor.
| Constructor Summary | |
|---|---|
ModbusUDPTransport(UDPTerminal terminal)
Constructs a new ModbusTransport instance, for a given UDPTerminal. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the raw input and output streams of this ModbusTransport. |
ModbusRequest |
readRequest()
Reads a ModbusRequest from the input stream of this ModbusTransport. |
ModbusResponse |
readResponse()
Reads a ModbusResponse from the input stream of this ModbusTransport. |
void |
writeMessage(ModbusMessage msg)
Writes a to the output stream of this ModbusTransport. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModbusUDPTransport(UDPTerminal terminal)
terminal - the UDPTerminal used for message transport.| Method Detail |
|---|
public void close()
throws IOException
ModbusTransport
close in interface ModbusTransportIOException - if a stream
cannot be closed properly.
public void writeMessage(ModbusMessage msg)
throws ModbusIOException
ModbusTransport
writeMessage in interface ModbusTransportmsg - a ModbusMessage.
ModbusIOException - data cannot be
written properly to the raw output stream of
this ModbusTransport.
public ModbusRequest readRequest()
throws ModbusIOException
ModbusTransport
readRequest in interface ModbusTransportModbusIOException - data cannot be
read properly from the raw input stream of
this ModbusTransport.
public ModbusResponse readResponse()
throws ModbusIOException
ModbusTransport
readResponse in interface ModbusTransportModbusIOException - data cannot be
read properly from the raw input stream of
this ModbusTransport.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||