From: Michal Voců Date: Wed, 28 Apr 2010 09:17:31 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: glite-security-gsoap-plugin_R_2_1_2_1~39 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=2b61d0ce7fddab195bf0e3aede5977addcecae59;p=jra1mw.git *** empty log message *** --- diff --git a/org.glite.lb.doc/examples/cons_example3.cpp b/org.glite.lb.doc/examples/cons_example3.cpp index fe109b7..0d42ab6 100644 --- a/org.glite.lb.doc/examples/cons_example3.cpp +++ b/org.glite.lb.doc/examples/cons_example3.cpp @@ -55,7 +55,7 @@ int main(int argc, char *argv[]) { string server_s, jobid_s, user; int opt, err = 0; - glite_jobid_t jobid = NULL; + glite::jobid::JobId jobid; long i; int port = 0; @@ -76,22 +76,20 @@ int main(int argc, char *argv[]) } /*variables*/ - ServerConnection server; - Event *eventsOut; - vector jc; - vector ec; + ServerConnection lb_server; + vector eventsOut; + vector jc; + vector ec; /*end variables*/ - if ( (errno = edg_wlc_JobIdParse(jobid_s, &jobid)) ) { perror(jobid_s); return 1; } - - /*context*/ - edg_wll_InitContext(&ctx); - - edg_wll_SetParam(ctx, EDG_WLL_PARAM_QUERY_SERVER, server); - if (port) edg_wll_SetParam(ctx, EDG_WLL_PARAM_QUERY_SERVER_PORT, port); - /*end context*/ + try { + /*context*/ + jobid = glite::jobid::JobId(jobid_s); + + lb_server.setQueryServer(jobid.host(), jobid.port()); + /*end context*/ - /*queryrec*/ + /*queryrec*/ jc[0].attr = EDG_WLL_QUERY_ATTR_USERTAG; jc[0].op = EDG_WLL_QUERY_OP_EQUAL; jc[0].attr_id.tag = "color";