PREF_RegisterCallback("network.proxy",NET_PrefChangedFunc,NULL); PREF_RegisterCallback("browser.cache",NET_PrefChangedFunc,NULL); PREF_RegisterCallback("network.hosts.socks_server",NET_PrefChangedFunc,NULL); PREF_RegisterCallback("network.hosts.socks_serverport",NET_PrefChangedFunc,NULL); PREF_RegisterCallback("network.dnsCacheExpiration",NET_DNSExpirationPrefChanged,NULL); NET_RegisterCookiePrefCallbacks();    NET_RegisterPadPrefCallbacks(); PREF_RegisterCallback("mail.allow_at_sign_in_user_name", NET_PrefChangedFunc, NULL);  #ifdef XP_UNIX { char *ac_url = getenv("AUTOCONF_URL"); if (ac_url) { NET_SetProxyServer(PROXY_AUTOCONF_URL, ac_url); NET_SelectProxyStyle(PROXY_STYLE_AUTOMATIC); } } #endif
NET_FinishInitNetLib(){#ifdef MOZILLA_CLIENT    NET_ReadCacheFAT("", TRUE);	NET_ReadCookies("");#endif /* MOZILLA_CLIENT */	NET_RegisterEnableUrlMatchCallback();	NET_SetupPrefs(NULL);  /* setup initial proxy, socks, dnsExpiration and cache preference info */}