private void HandleReqProxyMsgToClient(PacketBase packet) { ProxyS2CMsg proxy_msg = packet as ProxyS2CMsg; //转发的消息id ushort header = proxy_msg.data.ReadUShort(); //由于ws2c和ss2c有部分消息共用(如ws上的聊天用到了ss2c的聊天),这里屏蔽id检测 //if (header < ProtocolID.MSG_BASE_SS2C || header >= ProtocolID.MSG_BASE_SS2C + ProtocolID.MSG_APPLAYER_PER_INTERVAL) //{ // Log.Debug("收到错误的消息ID:" + header); // return; //} //读clientuid proxy_msg.data.Peek(ref tmp_client_uid_by, tmp_client_uid_by.Length); tmp_client_uid.Read(tmp_client_uid_by); if (proxy_msg.is_broadcast) { ClientSessionManager.Instance.BroadcastProxy(header, proxy_msg.data, eSessionStatus.IN_GAMING); } else { ForClientNetManager.Instance.SendProxy(tmp_client_uid.conn_idx, header, proxy_msg.data); } }
public override void Read(ByteArray by) { base.Read(by); //内容在ClientMsgProc::OnNetworkClient已经读取 //packet_idx = by.ReadUShort(); //data_verify = by.ReadUShort(); client_uid.Read(by); }
public override void Read(ByteArray by) { base.Read(by); client_uid.Read(by); }