diff options
author | Teddy <[email protected]> | 2013-08-23 14:19:50 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-08-23 14:19:50 +0800 |
commit | dc4111896079c991548c53724f6f42c3147dd738 (patch) | |
tree | cb73f92157bae9a10bd810ca50b1ef64cd096eb8 | |
parent | 8d5489095e4b0526e4152f7e3a1e9bc3a758e9bd (diff) |
...
-rw-r--r-- | server/piztor_server.py | 2 | ||||
-rw-r--r-- | server/ptp.rst | 10 |
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`` : :: |