From dc4111896079c991548c53724f6f42c3147dd738 Mon Sep 17 00:00:00 2001 From: Teddy Date: Fri, 23 Aug 2013 14:19:50 +0800 Subject: ... --- server/piztor_server.py | 2 +- 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`` : :: -- cgit v1.2.3-70-g09d2