Beispiel #1
0
        public async Task SendIPPacketAsync(IPv4Packet Packet)
        {
            Packet.Id = mID++;
            byte[] data = Packet.ToBytes();
            await mTxSemaphore.WaitAsync();

            await Tap.TapDriver.WriteAsync(data);

            //Tap.TapDriver.Flush();
            //Tap.TapDriver.InvokeMethod("FlushWrite", true);
            mTxSemaphore.Release();
        }