Exemplo n.º 1
0
        private void DecodePacket()
        {
            //	Since all protocol packets are encapsulated in the IP datagram
            //	so we start by parsing the IP header and see what protocol data
            //	is being carried by it
            IPHeader = new IPHeader(m_packet, m_dataLength);

            ProtocolHeader = ProtocolFactory.Factory(IPHeader.ProtocolType, IPHeader.DataGram, IPHeader.MessageLength);
        }