unknown
2025-06-26 83ce55ef70e6abc3074a0f706d90e168db8e1ea4
Merge branch 'master' of ssh://115.28.86.8:29418/~admin/智能网联_25-0305_617_v1
13个文件已添加
72 ■■■■■ 已修改文件
Client/寇百盛/log/日志_寇百盛_0624.doc 补丁 | 查看 | 原始文档 | blame | 历史
Client/徐蔓云/log/日志_徐蔓云_0625.doc 补丁 | 查看 | 原始文档 | blame | 历史
Client/陈豪/log/日志_陈豪_250624.doc 补丁 | 查看 | 原始文档 | blame | 历史
Client/魏强/log/日志_魏强_0625.doc 补丁 | 查看 | 原始文档 | blame | 历史
Server/common_type.h 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Server/刘斌/log/~$_刘斌_20250623.doc 补丁 | 查看 | 原始文档 | blame | 历史
Server/刘斌/log/日志_刘斌_20250624.doc 补丁 | 查看 | 原始文档 | blame | 历史
Server/徐逸凡/log/日志_徐逸凡_250624.doc 补丁 | 查看 | 原始文档 | blame | 历史
Server/林余杰/log/日志_林余杰_20250624.doc 补丁 | 查看 | 原始文档 | blame | 历史
Server/梁博/log/~WRL1314.tmp 补丁 | 查看 | 原始文档 | blame | 历史
Server/梁博/log/日志_梁博_0624.doc 补丁 | 查看 | 原始文档 | blame | 历史
Server/汪卫军/log/1.2.doc 补丁 | 查看 | 原始文档 | blame | 历史
Server/王鹏哲/log/日志_王鹏哲_20250625.doc 补丁 | 查看 | 原始文档 | blame | 历史
Client/¿Ü°ÙÊ¢/log/ÈÕÖ¾_¿Ü°ÙÊ¢_0624.doc
Binary files differ
Client/ÐìÂûÔÆ/log/ÈÕÖ¾_ÐìÂûÔÆ_0625.doc
Binary files differ
Client/³ÂºÀ/log/ÈÕÖ¾_³ÂºÀ_250624.doc
Binary files differ
Client/κǿ/log/ÈÕÖ¾_κǿ_0625.doc
Binary files differ
Server/common_type.h
New file
@@ -0,0 +1,72 @@
#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
Server/Áõ±ó/log/~$_Áõ±ó_20250623.doc
Binary files differ
Server/Áõ±ó/log/ÈÕÖ¾_Áõ±ó_20250624.doc
Binary files differ
Server/ÐìÒÝ·²/log/ÈÕÖ¾_ÐìÒÝ·²_250624.doc
Binary files differ
Server/ÁÖÓà½Ü/log/ÈÕÖ¾_ÁÖÓà½Ü_20250624.doc
Binary files differ
Server/Áº²©/log/~WRL1314.tmp
Binary files differ
Server/Áº²©/log/ÈÕÖ¾_Áº²©_0624.doc
Binary files differ
Server/ÍôÎÀ¾ü/log/1.2.doc
Binary files differ
Server/ÍõÅôÕÜ/log/ÈÕÖ¾_ÍõÅôÕÜ_20250625.doc
Binary files differ