代码拉取完成,页面将自动刷新
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。