Esempio n. 1
0
        private Packet PacketHandler(Packet packet, IPEndPoint sim, Direction direction)
        {
            LoggedPacket logged = new LoggedPacket();

            logged.Packet    = packet;
            logged.Sim       = sim;
            logged.Direction = direction;

            lock (Inbox)
                Inbox.Enqueue(logged);

            // TODO: Packet modifications

            return(packet);
        }
        private Packet PacketHandler(Packet packet, IPEndPoint sim, Direction direction)
        {
            LoggedPacket logged = new LoggedPacket();
            logged.Packet = packet;
            logged.Sim = sim;
            logged.Direction = direction;

            lock (Inbox)
                Inbox.Enqueue(logged);

            // TODO: Packet modifications

            return packet;
        }