A continuity theory for lossless source coding over networks