Esempio n. 1
0
 public void DispatchPacket(DeviceIO device, Packet inboundPacket)
 {
     if (inboundPacket.direction != Source.NewConnection && inboundPacket.direction != Source.Disconnect)
     {
         InjectPacket(device, inboundPacket);
     }
 }
Esempio n. 2
0
        public MainForm()
        {
            InitializeComponent();

            try
            {
                dispatcher = new PacketDispatcher();
                device     = new DeviceIO(@"\\.\rmzdrv", cancel.Token, dispatcher);
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, exception.Source, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 3
0
 public void InjectPacket(DeviceIO device, Packet outboundPacket)
 {
     device.Write(outboundPacket);
 }