MCPcopy
hub / github.com/aceld/zinx / NotifyBuffToConnByID

Method NotifyBuffToConnByID

znotify/notify.go:90–101  ·  view source on GitHub ↗
(Id uint64, MsgId uint32, data []byte)

Source from the content-addressed store, hash-verified

88}
89
90func (n *notify) NotifyBuffToConnByID(Id uint64, MsgId uint32, data []byte) error {
91 Conn, err := n.GetNotifyByID(Id)
92 if err != nil {
93 return err
94 }
95 err = Conn.SendBuffMsg(MsgId, data)
96 if err != nil {
97 zlog.Ins().ErrorF("Notify to %d err:%s \n", Id, err)
98 return err
99 }
100 return nil
101}
102
103func (n *notify) NotifyBuffAll(MsgId uint32, data []byte) error {
104

Callers

nothing calls this directly

Calls 4

GetNotifyByIDMethod · 0.95
InsFunction · 0.92
SendBuffMsgMethod · 0.65
ErrorFMethod · 0.65

Tested by

no test coverage detected