From 821e0f97c0b69525171c4cb8498c3e40ecc2e909 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Wed, 8 Mar 2017 21:05:24 +0800 Subject: [PATCH] Upload files to '' --- BookFloatingServer服务端通信准则(草稿).txt | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 BookFloatingServer服务端通信准则(草稿).txt 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'} + +