Пример #1
0
        static void DecoderPacketPcap(string cmd)
        {
            FollowStream flowstream = new FollowStream();
            string dat = CommonFunction.ExecuteCmd(cmd);
            string[] txtLines = dat.Substring(dat.IndexOf("\r\n")).Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
            foreach (string line in txtLines)
            {
                string nLine=line.Replace("[Malformed Packet]", "");
                nLine = nLine.Trim();
                var items = nLine.Split(new char[] { ' ' });
                AMessageDetail msg = new AMessageDetail();
                msg.PacketNum = Int32.Parse(items[0]);
                msg.PacketTime = DateTime.Parse(items[1]);
                msg.imsi = items[2];
                msg.tmsi = items[3];
                msg.m3ua_opc = items[4];
                msg.m3ua_dpc = items[5];
                msg.sccp_slr = items[6];
                msg.sccp_dlr = items[7];
                for (int i = 8; i < items.Count(); i++)
                    msg.message_type += items[i];

                flowstream.FollowSccpStream(msg);
            }
        }
 public OutputDataReceive()
 {
     flowstream = new FollowStream();
 }
Пример #3
0
 public OutputDataReceive()
 {
     flowstream = new FollowStream();
 }