06 2020 档案

摘要:比如我们和前端互通的包大小限制是4K,如果发一个大于4K的包就无法发送,这时候就需要和前端拆包和包。 bool LobbyServer::SendPbMsgToClient(PlayerNode *lpPlayerNode, unsigned short ty... 阅读全文
posted @ 2020-06-26 23:23 byfei 阅读(153) 评论(0) 推荐(0) 编辑
摘要:问题描述 前后端用的UTF8,前后端正常,navicat.exe编辑链接->高级->选择UTF8也不乱码,但是选择自动就乱码。 现在我们后台那边也乱码,所以我怀疑自动编码就是mysql默认编码。 我 vi /etc/my.cnf 设置了编码也没用。最后试着修... 阅读全文
posted @ 2020-06-12 20:44 byfei 阅读(93) 评论(0) 推荐(0) 编辑
摘要:#pragma once#ifdef _WIN32#include #else#include #endif#include typedef unsigned long long uint64;namespace Extralib{ namespace Tim... 阅读全文
posted @ 2020-06-04 21:19 byfei 阅读(81) 评论(0) 推荐(0) 编辑
摘要:#include #include #include #include "LobbyPlayer.h"#include "LobbyServer.h"using namespace std;typedef bool(*NetMsgProcProtoType)(... 阅读全文
posted @ 2020-06-03 17:28 byfei 阅读(62) 评论(0) 推荐(0) 编辑