summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/piztor_server.py2
-rw-r--r--server/ptp.rst10
2 files changed, 6 insertions, 6 deletions
diff --git a/server/piztor_server.py b/server/piztor_server.py
index f0107b6..5667866 100644
--- a/server/piztor_server.py
+++ b/server/piztor_server.py
@@ -8,7 +8,7 @@ from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from random import randint
-engine = create_engine('sqlite:///t.sqlite', echo = True)
+engine = create_engine('sqlite:///t.sqlite', echo = False)
Base = declarative_base()
Session = sessionmaker(bind=engine)
diff --git a/server/ptp.rst b/server/ptp.rst
index 02a862f..ef7af57 100644
--- a/server/ptp.rst
+++ b/server/ptp.rst
@@ -37,7 +37,7 @@ Piztor Transmission Protocol v0.1
| 0x00 | USER_TOKEN | STATUS |
+-uchar-+-----int----+--uchar--+
- STATUS:
+ ``STATUS`` :
- 0x00 for success
- 0x01 for failure
@@ -60,7 +60,7 @@ Piztor Transmission Protocol v0.1
| 0x01 | STATUS |
+-uchar-+--uchar-+
- STATUS:
+ ``STATUS`` :
- 0x00 for success
- 0x01 for invalid token
@@ -80,10 +80,10 @@ Piztor Transmission Protocol v0.1
::
+--1b---+---1b---+
- | 0x01 | STATUS |
+ | 0x02 | STATUS |
+-uchar-+--uchar-+
- STATUS:
+ ``STATUS`` :
- 0x00 for success
- 0x01 for invalid token
@@ -106,7 +106,7 @@ Piztor Transmission Protocol v0.1
| 0x03 | ENTRY_CNT | LOCATION_ENTRY | ... |
+-uchar-+---int-----+----------------+-----+
- Location Entry:
+ ``LOCATION_ENTRY`` :
::