コード例 #1
0
    // Check for null returned
    public byte[] GetIPFromResponse()
    {
        PacketExplode pe = new PacketExplode(m_bReceivedBytes);

        if (pe.IsResponse())
        {
            return(pe.GetIP());
        }
        else
        {
            return(null);
        }
    }
コード例 #2
0
ファイル: DNSPackets.cs プロジェクト: mind0n/hive
 // Check for null returned
 public byte[] GetIPFromResponse()
 {
     PacketExplode pe = new PacketExplode(m_bReceivedBytes);
     if (pe.IsResponse())
     {
         return pe.GetIP();
     }
     else
     {
         return null;
     }
 }