(Id uint64, MsgId uint32, data []byte)
| 62 | } |
| 63 | |
| 64 | func (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 | |
| 77 | func (n *notify) NotifyAll(MsgId uint32, data []byte) error { |
| 78 |
nothing calls this directly
no test coverage detected