コード例 #1
0
        private void HandleDhcpResponseReceived(IList <DhcpPacket> results, DhcpPacketEventArgs args, uint transactionId)
        {
            if (args.Packet.TransactionId == transactionId)
            {
                _logger.LogDebug("Received a DHCP Packet for transaction {0}", transactionId);

                results.Add(args.Packet);
            }
        }
コード例 #2
0
ファイル: DhcpListener.cs プロジェクト: lholota/dhcp-dotnet
        private void OnPacketReceived(DhcpPacket packet)
        {
            var args = new DhcpPacketEventArgs(packet);

            PacketReceived?.Invoke(this, args);
        }