1 Star 0 Fork 0

小鱼儿小董子/dongli-zinx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
inotify.go 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
小鱼儿小董子 提交于 2个月前 . first commit
package ziface
type Inotify interface {
// Whether there is a connection with this id
// (是否有这个id)
HasIdConn(id uint64) bool
// Get the number of connections stored
// (存储的map长度)
ConnNums() int
// Add a connection
// (添加链接)
SetNotifyID(Id uint64, conn IConnection)
// Get a connection by id
// (得到某个链接)
GetNotifyByID(Id uint64) (IConnection, error)
// Delete a connection by id
// (删除某个链接)
DelNotifyByID(Id uint64)
// Notify a connection with the given id
// (通知某个id的方法)
NotifyToConnByID(Id uint64, MsgId uint32, data []byte) error
// Notify all connections
// (通知所有人)
NotifyAll(MsgId uint32, data []byte) error
// Notify a connection with the given id using a buffer queue
// (通过缓冲队列通知某个id的方法)
NotifyBuffToConnByID(Id uint64, MsgId uint32, data []byte) error
// Notify all connections using a buffer queue
// (缓冲队列通知所有人)
NotifyBuffAll(MsgId uint32, data []byte) error
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wanjimao/dongli-zinx.git
git@gitee.com:wanjimao/dongli-zinx.git
wanjimao
dongli-zinx
dongli-zinx
v0.0.1

搜索帮助