This commit is contained in:
zhouyuyan committed 2017-08-25 15:28:41 +08:00
1 parent 0bc226d071
commit 0ea7da1dc0
8 files changed
+91 -25

No files matched your search

+7
View File
@@ -2,6 +2,13 @@ package broker
import "sync"
const (
MaxUser = 1024 * 1024
MessagePoolNum = 1024
MessagePoolUser = MaxUser / MessagePoolNum
MessagePoolMessageNum = MaxUser / MessagePoolNum * 4
)
type Message struct {
client *client
msg []byte