Ejemplo n.º 1
0
 public void DispatchPacket(DeviceIO device, Packet inboundPacket)
 {
     if (inboundPacket.direction != Source.NewConnection && inboundPacket.direction != Source.Disconnect)
     {
         InjectPacket(device, inboundPacket);
     }
 }
Ejemplo 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);
            }
        }
Ejemplo n.º 3
0
 public void InjectPacket(DeviceIO device, Packet outboundPacket)
 {
     device.Write(outboundPacket);
 }