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

Method SendBuffMsg

znet/connection.go:468–476  ·  view source on GitHub ↗
(msgID uint32, data []byte, opts ...ziface.MsgSendOption)

Source from the content-addressed store, hash-verified

466}
467
468func (c *Connection) SendBuffMsg(msgID uint32, data []byte, opts ...ziface.MsgSendOption) error {
469 msg, err := c.packet.Pack(zpack.NewMsgPackage(msgID, data))
470 if err != nil {
471 zlog.Ins().ErrorF("Pack error msg ID = %d", msgID)
472 return errors.New("Pack error msg ")
473 }
474 return c.SendToQueue(msg, opts...)
475
476}
477
478func (c *Connection) SetProperty(key string, value interface{}) {
479 c.propertyLock.Lock()

Callers

nothing calls this directly

Calls 5

SendToQueueMethod · 0.95
NewMsgPackageFunction · 0.92
InsFunction · 0.92
PackMethod · 0.65
ErrorFMethod · 0.65

Tested by

no test coverage detected