OpenETS Plugin Reference/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
Zeile 9: Zeile 9:


0x00
0x00
<id> 8 bytes of unique ID
&lt;id&gt; 8 bytes of unique ID
<requestID> 4 bytes request-Nr (sequential nr, MSB)
&lt;requestID&gt; 4 bytes request-Nr (sequential nr, MSB)
<xPathLen> 4 bytes of length of path, MSB)
&lt;xPathLen&gt; 4 bytes of length of path, MSB
<reqTypeLen> 4 bytes of length of request type, MSB)
&lt;reqTypeLen&gt; 4 bytes of length of request type, MSB
<argsLen> 4 bytes of length of arguments, MSB)
&lt;argsLen&gt; 4 bytes of length of arguments, MSB
<xPath> xPathLen bytes
&lt;xPath&gt; xPathLen bytes
<reqType> reqTypeLen bytes
&lt;reqType&gt; reqTypeLen bytes
<args> argsLen bytes
&lt;args&gt; argsLen bytes
0xFF
0xFF



Version vom 21. September 2018, 17:01 Uhr

Protocol[Bearbeiten]

Expecco connects to the client which listens on its OpenETS port. The default port is 8866.

Every request packet is surrounded by SOF (Start of Frame) and EOF (End of Frame) bytes. SOF is 0x00 / EOF is 0xFF.

Requst Packet Format (Expecco -> Application)[Bearbeiten]

0x00
<id>            8 bytes of unique ID
<requestID>     4 bytes request-Nr (sequential nr, MSB)
<xPathLen>      4 bytes of length of path, MSB
<reqTypeLen>    4 bytes of length of request type, MSB
<argsLen>       4 bytes of length of arguments, MSB
<xPath>         xPathLen bytes
<reqType>       reqTypeLen bytes
<args>          argsLen bytes
0xFF

Response Packet Format (Application -> Expecco)[Bearbeiten]

0x00
<errCode>         2 bytes error code MSB (0 = ok; more codes below)
<requestID>       4 bytes request-Nr (sequential nr, MSB)
<dataSize>        4 bytes of length of uncompressed data, MSB
<xmittedSize>     4 bytes of length of transmitted data, MSB
<data>            xmittedSize bytes
0xFF

If dataSize == xmittedSize, then the data is uncompressed. Otherwise, it is zlib-compressed, and xmittedSize is the size of the compressed data, whereas dataSize is the size of the uncompressed data.



Copyright © 2014-2024 eXept Software AG