Example #1
0
func (this *SClientUser) Send2Client(vTClientId TClientId, byMsg []byte) error {
	vSMsg_Server2Gate_ClientMsg := new(bsn_msg.SMsg_Server2Gate_ClientMsg)
	vSMsg_Server2Gate_ClientMsg.Fill(uint16(vTClientId), byMsg)
	return this.SendMsgWithSMsgHeader(bsn_common.TMsgType(bsn_msg_gate_server.ECmdServe2Gate_CmdServer2Gate_ClientMsg), vSMsg_Server2Gate_ClientMsg.Serialize())
}
Example #2
0
func (this *SServerUser) ProcMsg_CmdServer2Gate_ClientMsg() error {
	GSLog.Debugln("ProcMsg_CmdServer2Gate_ClientMsg")
	vSMsg_Server2Gate_ClientMsg := new(bsn_msg.SMsg_Server2Gate_ClientMsg)
	vSMsg_Server2Gate_ClientMsg.DeSerialize(this.M_by2MsgBody)
	return this.UserMgr().UserMgr().ClientUserMgr().Send(TClientId(vSMsg_Server2Gate_ClientMsg.M_ClientId), vSMsg_Server2Gate_ClientMsg.M_byMsg)
}