You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2017/12/30 13:47:38 UTC
[incubator-plc4x] branch master updated: - Added some comment to
the getHeaderLenght method.
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git
The following commit(s) were added to refs/heads/master by this push:
new 4c6f9bd - Added some comment to the getHeaderLenght method.
4c6f9bd is described below
commit 4c6f9bdf3b064febccb548f1b64cbf2b884798ad
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Sat Dec 30 14:47:34 2017 +0100
- Added some comment to the getHeaderLenght method.
---
.../java/org/apache/plc4x/java/isotp/netty/IsoTPProtocol.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/isotp/netty/IsoTPProtocol.java b/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/isotp/netty/IsoTPProtocol.java
index 2271312..f10cea9 100644
--- a/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/isotp/netty/IsoTPProtocol.java
+++ b/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/isotp/netty/IsoTPProtocol.java
@@ -254,6 +254,14 @@ public class IsoTPProtocol extends MessageToMessageCodec<IsoOnTcpMessage, Tpdu>
}
}
+ /**
+ * Return the length of the entire header in bytes (including the size field itself)
+ * This is a sum of the fixed size header defined for the given tpdu type and the
+ * lengths of all parameters.
+ *
+ * @param tpdu Tpdu to get the header length for
+ * @return length of the iso tp header
+ */
private short getHeaderLength(Tpdu tpdu) {
if (tpdu != null) {
short headerLength = 0;
--
To stop receiving notification emails like this one, please contact
['"commits@plc4x.apache.org" <co...@plc4x.apache.org>'].