summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/ptp.rst16
1 files changed, 9 insertions, 7 deletions
diff --git a/server/ptp.rst b/server/ptp.rst
index e835bd7..bbbcf7a 100644
--- a/server/ptp.rst
+++ b/server/ptp.rst
@@ -1,4 +1,4 @@
-Piztor Transmission Protocol v0.1
+Piztor Transmission Protocol v0.2
---------------------------------
- General
@@ -7,17 +7,19 @@ Piztor Transmission Protocol v0.1
::
- +---1b---+-------?b--------+
- | OPT ID | SPECIFIC DATA |
- +-uchar--+-----------------+
+ +---4b---+---1b---+-------?b--------+
+ | LENGTH | OPT ID | SPECIFIC DATA |
+ +--int---+-uchar--+-----------------+
- Response
::
- +---1b---+------?b---------+
- | OPT ID | SPECIFIC DATA |
- +-uchar--+-----------------+
+ +---4b---+---1b---+------?b---------+
+ | LENGTH | OPT ID | SPECIFIC DATA |
+ +--int---+-uchar--+-----------------+
+
+ Notice that in following sections, ``LENGTH`` part is left out for clarity.
- Authentication