AnimatGuiCtrls.Network.IcmpPacket.IcmpPacket C# (CSharp) Method

IcmpPacket() public method

public IcmpPacket ( ) : System
return System
        public IcmpPacket()
        {
            // Construct the this to send
            this.Type = ICMP_ECHO; //8
            this.SubCode = 0;
            this.CheckSum = UInt16.Parse("0");
            this.Identifier = UInt16.Parse("45");
            this.SequenceNumber = UInt16.Parse("0");

            this.Data = new Byte[PING_DATA_SIZE];

            //Initilize the Packet.Data
            for (int i = 0; i < this.Data.Length; i++)
                this.Data[i] = (byte)'#';

            //Create initial checksum
            UpdateChecksum();
        }