Example #1
0
 private async void W_DnsPacketPoped(object sender, byte[] e, uint addr, ushort port)
 {
     try
     {
         var res = await dnsServer.QueryAsync(e).ConfigureAwait(false);
         await executeLwipTask(() => w.PushDnsPayload(addr, port, res));
     }
     catch (Exception)
     {
         // DNS timeout?
     }
 }
Example #2
0
        async private void W_DnsPacketPoped(object sender, byte[] e, uint addr, ushort port)
        {
            try
            {
                var res = await dnsServer.QueryAsync(e);

                executeLwipTask(() => w.PushDnsPayload(addr, port, new List <byte>(res).ToArray()));
            }
            catch (Exception)
            {
                // DNS timeout?
            }
        }