Skip to main content
INF - e-learning - Dipartimento di Informatica
  • English ‎(en)‎
    English ‎(en)‎ Italiano ‎(it)‎
You are currently using guest access (Log in)

Lab. Reti - A -2025/26

  1. Home
  2. Courses
  3. Corso di Laurea in Informatica (L-31)
  4. LPR-A-2526
  5. 24 Ottobre
  6. Analisi di indirizzi IP in un log file di un web ...

Analisi di indirizzi IP in un log file di un web server

Completion requirements
Opened: Friday, 24 October 2025, 12:00 AM
Due: Friday, 7 November 2025, 11:55 PM

Il log file di un web server contiene un insieme di linee, con il seguente formato:

150.108.64.57 - - [15/Feb/2001:09:40:58 -0500] "GET / HTTP 1.0" 200 2511

in cui:

  • 150.108.64.57 indica l'host remoto, in genere secondo la dotted quad form
  • [data]
  • "HTTP request"
  • status
  • bytes sent
  • eventuale tipo del client "Mozilla/4.0......."

Scrivere un'applicazione Weblog che prende in input il nome del log file (che è fornito) e ne stampa ogni linea, in cui ogni indirizzo IP è sostituito con l'hostname. Sviluppare due versioni del programma, la prima single-threaded, la seconda invece utilizza un thread pool, in cui il task assegnato ad ogni thread riguarda la traduzione di un insieme di linee del file.

 Confrontare i tempi delle due versioni.

  • web.log.txt web.log.txt
    24 October 2025, 8:46 PM
◄ Inetaddress, TCP Sockets lato client
Correzione Assignment 5: Analisi Indirizzi IP ►

Blocks

Skip Navigation

Navigation

  • Home

    • Site pages

      • My courses

      • Tags

      • ForumSite news

    • My courses

    • Courses

      • Corso di Laurea in Informatica (L-31)

        • LAB3B-25/26

        • RETI2025/26A_1

        • BD-A 25/26

        • RETI_B_25/26

        • LPR-A-2526

          • General

          • 19 Settembre

          • 26 settembre

          • 13 Ottobre

          • 17 Ottobre

          • 24 Ottobre

            • FileInetaddress, TCP Sockets lato client

            • AssignmentAnalisi di indirizzi IP in un log file di un web ...

            • FileCorrezione Assignment 5: Analisi Indirizzi IP

          • 27 Ottobre

          • 31 Ottobre

          • 7 Novembre

          • 14 Novembre

          • 21 Novembre

          • 28 Novembre

          • 5 Dicembre

        • TI_25-26

        • PdP-A 2025

        • PdP-B-2025

        • Reti 2025/26 A

        • RO 25/26

        • Lab2A-25/26

      • Corso di Laurea Magistrale in Informatica (LM-18)

      • Corso di Laurea Magistrale in Informatica e Networ...

      • Corso di Laurea Magistrale in Data Science and Bus...

      • Corso di Laurea Magistrale in Informatics for Digi...

      • Corsi erogati dal Dipartimento di Matematica

      • Master di II livello in "Professione formatore in ...

      • Corsi CLIL

      • Altri Corsi

      • Anno Accademico 2013-14

Supplementary blocks

You are currently using guest access (Log in)
LPR-A-2526
  • English ‎(en)‎
    • English ‎(en)‎
    • Italiano ‎(it)‎
Data retention summary
Get the mobile app