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

Method NotifyToConnByID

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

Source from the content-addressed store, hash-verified

62}
63
64func (n *notify) NotifyToConnByID(Id uint64, MsgId uint32, data []byte) error {
65 Conn, err := n.GetNotifyByID(Id)
66 if err != nil {
67 return err
68 }
69 err = Conn.SendMsg(MsgId, data)
70 if err != nil {
71 fmt.Printf("Notify to %d err:%s \n", Id, err)
72 return err
73 }
74 return nil
75}
76
77func (n *notify) NotifyAll(MsgId uint32, data []byte) error {
78

Callers

nothing calls this directly

Calls 2

GetNotifyByIDMethod · 0.95
SendMsgMethod · 0.65

Tested by

no test coverage detected