LumiSoft.Net.Dns.Client.Dns_Client.ParseARecord C# (CSharp) 메소드

ParseARecord() 개인적인 메소드

private ParseARecord ( byte reply, int &offset, int rdLength, int ttl ) : A_Record
reply byte
offset int
rdLength int
ttl int
리턴 A_Record
        private A_Record ParseARecord(byte[] reply,ref int offset,int rdLength,int ttl)
        {
            // IPv4 = byte byte byte byte

            byte[] ip = new byte[rdLength];
            Array.Copy(reply,offset,ip,0,rdLength);

            return new A_Record(ip[0] + "." + ip[1] + "." + ip[2] + "." + ip[3],ttl);
        }