-
Notifications
You must be signed in to change notification settings - Fork 1
CodMac/NETTY-CHAT
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
聊天IM 1.模块划分 ========================================================================= start -------------------------spring cloud---------------------------- | | | ---------------------------API------------------------- | | | _____________ _____________ ______________ | | | | | API-LOGIN | | API-MESS | | API-FRIEND | | | | | ------------- ------------- -------------- | | | ---------------------------API------------------------- | | | | | | -------------------------echoServer-------------------- | | | _____________ _____________ ______________ | | | | |chat-server| |chat-server| |............| | | | | ------------- ------------- -------------- | | | -------------------------echoServer-------------------- | | | | | | ---------- | | | router | | | ---------- | | | | | ----------------------------------------------------------------- _____________ _____________ ______________ |chat-client| |chat-client| |............| ------------- ------------- -------------- =================================================================================== end > > > 2.自定义协议========================================================================= start bytes -------------- | | | | | -------------- 4位 -- 魔数: 用于标注消息开头. 'M','A','C','!' 1位 -- 协议版本号. 0b00000001 1位 -- msgModule: 用于区分消息类型 4位 -- 消息体长度 n位 -- 消息体 > encoder编码器实现 zqit.echoServer.pulgins.netty.protocol.nettyChatProtocol.encode.NettyChatEncoder > decoder解码器实现 zqit.echoServer.pulgins.netty.protocol.nettyChatProtocol.decode.NettyChatDecoder =================================================================================== end > > >
About
springcloud+netty实现的高可用性IM
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published