Read and process incoming packets