Пример #1
0
        public byte[] GetUDPHeader()
        {
            Debug.Assert(!m_bSplitted);
            UDP_Header_Struct header = (UDP_Header_Struct)head;

            header.command   = opcode;
            header.eDonkeyID = prot;
            return(head);
        }
Пример #2
0
        private byte[] UDPHeaderStructToBytes(UDP_Header_Struct head)
        {
            byte[] header = new byte[6];

            header[0] = head.eDonkeyID;
            header[1] = head.command;

            return(header);
        }