1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-08 01:24:57 +08:00
Files
WireGold/gold/link/notify.go
2021-12-28 12:47:52 +08:00

14 lines
385 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package link
import "github.com/fumiama/WireGold/gold/head"
// 收到通告包的处理函数
func (l *Link) onNotify(packet *head.Packet) {
// TODO: 完成data解包与endpoint注册
// 1. Data 解包
// ---- 使用 head.Notify 解释 packet.Data
// 2. endpoint注册
// ---- 遍历 Notify注册对方的 endpoint 到
// ---- connections注意使用读写锁connmapmu
}