Merge branch 'master' of ssh://115.28.86.8:29418/~admin/智能网联_25-0305_617_v1
3 文件已复制
1 文件已重命名
12个文件已添加
copy from "Server/\346\242\201\345\215\232/log/~WRL1314.tmp"
copy to "Client/\347\216\213\345\233\275\345\243\256/log/\346\227\245\345\277\227_\347\216\213\345\233\275\345\243\256_0625.doc"
Binary files differ
New file |
| | |
| | | #ifndef TCPDATATYPE_H |
| | | #define TCPDATATYPE_H |
| | | /* */ |
| | | enum class ActionType |
| | | { |
| | | HeartCheck = 100, |
| | | Login = 110, |
| | | Register = 120, |
| | | Msg = 200, |
| | | Download = 300 |
| | | }; |
| | | /* 慰 HTTP 应 */ |
| | | enum class ResponseCode |
| | | { |
| | | ResponseOK = 200, // 晒 |
| | | BadRequest = 400, // 突 螅 薹 |
| | | Unauthorized = 401, // 要 没 证 |
| | | Forbidden = 403, // 突 说 螅 蔷芫 执 写 |
| | | NotFound = 404, // 薹 业 源 |
| | | MethodNotAllowed = 405 // 突 械姆 止 |
| | | |
| | | }; |
| | | /* 息 */ |
| | | struct Head |
| | | { |
| | | ActionType type; |
| | | int len; |
| | | int version; |
| | | Head(ActionType ptype, int plen, int pversion) |
| | | { |
| | | len = plen; |
| | | type = ptype; |
| | | version = pversion; |
| | | } |
| | | }; |
| | | struct HeartCheckReq // |
| | | { |
| | | ActionType type; |
| | | int len; |
| | | HeartCheckReq() |
| | | { |
| | | type = ActionType::HeartCheck; |
| | | len = sizeof(HeartCheckReq); |
| | | } |
| | | }; |
| | | |
| | | struct HeartCheckRes // 应 |
| | | { |
| | | ActionType type; |
| | | int len; |
| | | HeartCheckRes() |
| | | { |
| | | type = ActionType::HeartCheck; |
| | | len = sizeof(HeartCheckRes); |
| | | } |
| | | }; |
| | | struct RegisterRequest |
| | | { |
| | | Head head; |
| | | char name[64]; |
| | | char password[64]; |
| | | char email[32]; |
| | | char phone[32]; |
| | | }; |
| | | struct LoginRequest |
| | | { |
| | | |
| | | Head head; |
| | | char name[64]; |
| | | char password[64]; |
| | | }; |
| | | #endif |
copy from "Server/\346\242\201\345\215\232/log/~WRL1314.tmp"
copy to "Server/\346\242\201\345\215\232/log/~WRL0005.tmp"
Binary files differ
copy from "Server/\346\242\201\345\215\232/log/~WRL1314.tmp"
copy to "Server/\346\261\252\345\215\253\345\206\233/log/\346\227\245\345\277\227_\346\261\252\345\215\253\345\206\233_0625.doc"
Binary files differ
New file |
| | |
| | | Subproject commit 0000000000000000000000000000000000000000 |
| | | Subproject commit 89d19ad386e768e8e54b6aa4b1d42f4617ceed03 |