[GLib] More net library refactoring.