Exemplo n.º 1
0
        void ControladorTCP_SegmentoRecibido(object sender, BusinessLogic.Datos.TCPSegmentRecibido e)
        {
            PacketSOA paquete = new PacketSOA();
            paquete.IpOrigen = e.PacketRecibido.IpOrigen;
            paquete.IpDestino = e.PacketRecibido.IpDestino;
            TCPSegmentSOA segment = new TCPSegmentSOA(e.SegmentoTCPRecibido.SourcePort,
                e.SegmentoTCPRecibido.DestinationPort,
                paquete,
                e.SegmentoTCPRecibido.SYN_Flag,
                e.SegmentoTCPRecibido.ACK_Flag,
                e.SegmentoTCPRecibido.SEQ_Number,
                e.SegmentoTCPRecibido.ACK_Number,e.HoraDeTransmision,
                false,
                e.SegmentoTCPRecibido.DataLength,
                e.SegmentoTCPRecibido.FinFlag);
            foreach (IVisualizacion vist in Vistas)
            {
                vist.EnviarInformacionSegmentoRecibido(_pc.Id, segment);

            }
        }
Exemplo n.º 2
0
 public void EnviarInformacionSegmentoRecibido(Guid idPC, TCPSegmentSOA segment)
 {
     _snifferMaster.EnviarInformacionSegmentoRecibido(idPC, segment);
 }
Exemplo n.º 3
0
        public void ReportarSegmentoEnviado(TCPSegmentSOA segment)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new SetSegmentDelegate(ReportarSegmentoEnviado),
                                                            new object[] { segment });

                return;
            }
            _mensajesSegmentos.Add(segment);

            SeleccionSniffer();

        }
 internal void EnviarInformacionSegmentoRecibido(Guid idPC, TCPSegmentSOA segment)
 {
     (_formsSniffers[idPC] as FormaSnifferPC).ReportarSegmentoEnviado(segment);
 }