添加消息帧格式处理逻辑,使用4字节长度前缀标识消息大小 在TcpConnection结构中添加buffer字段用于存储未处理的字节数据 修改sendMessage和receiveMessages方法以支持新的消息帧格式 |
||
|---|---|---|
| autoMigrate | ||
| baseGrpc | ||
| db | ||
| excel | ||
| log | ||
| mqtt/client | ||
| pool | ||
| server | ||
| task | ||
| tcp | ||
| utils | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| go.mod | ||
| go.sum | ||
README.md
Copyright 2021 black1552
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.