示例#1
0
文件: relay.go 项目: chogaths/robin
func (self *relayComponent) SendRaw(relaySession *netdef.Session, sessionid int64, pkt *netdef.Packet) error {

	if relaySession == nil {
		return nil
	}

	// 整合调用封包
	relaySession.Send(&coredef.RelayMessageACK{
		UserMsgID: proto.Uint32(pkt.MsgID),
		UserMsg:   pkt.Data,
		SessionID: proto.Int64(sessionid),
	})

	return nil

}