A general approach to online network optimization problems, Proc