void rexsession::ifchg_cb_set () { if (!ifchg) ifchg = ifchgcb (wrap (implicit_cast<axprt_stream *> (proxyxprt.get ()), &axprt_stream::sockcheck)); }
resolv_conf::resolv_conf () : ns_idx (0), last_reload (0), reload_lock (false), destroyed (New refcounted<bool> (false)) { if (!(_res.options & RES_INIT)) res_init (); bzero (&srvaddr, sizeof (srvaddr)); srvaddr.sin_family = AF_INET; srvaddr.sin_port = htons (NSPORT); ifc = ifchgcb (wrap (this, &resolv_conf::reload, false)); ns_idx = _res.nscount ? _res.nscount - 1 : 0; }