Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: Jeffrey L. DeMent <jld@advtech.uswest.com>
Subject: Pinging DCE Servers
Date: Mon, 3 May 1993 16:23:50 GMT	[thread overview]
Message-ID: <C6GLJq.8uI@da_vinci.it.uswc.uswest.com> (raw)

Is there a generally accepted methodology for overcoming the problem of
invalid (stale, whatever you want to call them) handles in CDS ?  Since
entries in CDS tend to stay there forever, it's entirely possible for
CDS to return an invalid binding handle in response to a client request.
Below is some code (error checking and other stuff removed) I tried that
did not work ..... someone out there have a scheme that works ?

        rpc_ns_binding_import_begin(rpc_c_ns_syntax_default,
                                    (unsigned_char_t *) argv[1],
                                    greetif_v1_0_c_ifspec,
                                    NULL,
                                    &import_context,
                                    &status);
        while(1) {

            rpc_ns_binding_import_next(import_context, &h, &status);
    
            rpc_ep_resolve_binding(h, greetif_v1_0_c_ifspec, &status);

            rpc_mgmt_is_server_listening(h, &status);
            if(status != rpc_s_ok) continue;

            /*
             * PROBLEM IS rpc_mgmt....() call returns 0 even when
             * server not there !
             */

            rpc_ns_binding_import_done(&import_context, &status);
            break;
        }

        /*  Make the remote call  */


Thanks.

Jeff
_____________________________________________________________________

 Jeffrey L. DeMent                                  _._._._._._._
 U S WEST Advanced Technologies                    (_|_|_|_|_|_|_)
 1475 Lawrence Street, Suite 400                    ` \` | | '/ '
 Denver, Colorado  80202                             ` \`| |'/ '
                                                      ` \| |/ '
 Phone: (303) 595-0519                                 ` \0/ '
 FAX:   (303) 592-6532                                  `~#~'
                                                          ^
 Internet: jld@advtech.uswest.com
_____________________________________________________________________


             reply	other threads:[~1993-05-03 16:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-03 16:23 Jeffrey L. DeMent [this message]
1993-05-04 22:12 ` Pinging DCE Servers David Skeen
1993-05-05 19:56 ` Greg Brail
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox