diff --git a/BookFloatingServer服务端通信准则(草稿).txt b/BookFloatingServer服务端通信准则(草稿).txt new file mode 100644 index 0000000..161f9ff --- /dev/null +++ b/BookFloatingServer服务端通信准则(草稿).txt @@ -0,0 +1,45 @@ +BookFloatingServerͨ׼򣨲ݸ壩 +汾v1.0 (20170308) + +ͨŲTCP-Socketӣַgameharbor.cn ˿55555 +Ϣ: + ͻȷJSONַв󷵻JSONַ. + ͻ˿ʱϿӣӽɻָ. + +JSON׼ + +1.ע +ֶ ֵ +type register룩 +email עûEmail +nicknamedz +school ѧУ +pwass ¼() + +ʾ +{'type':'register','email':'test@163.com','nickname':'Kirito','school':'QUST','pwass':'dvaLovesU'} + +ֵ +ֶ ֵ +ret ֵ(һΪ1ʱ) + +ʾ +{'ret':'1'} + +2.¼ +ֶ ֵ +type login룩 +email עʱEmail +pwass ¼루ģ + +ʾ +{'type':'login','email':'test@163.com','pwass':'dvaLovesU'} + +ֵ +ֶ ֵ +ret ֵ(0ʱΪ) + +ʾ +{'ret':'0'} + +