From 2b61d0ce7fddab195bf0e3aede5977addcecae59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Voc=C5=AF?= Date: Wed, 28 Apr 2010 09:17:31 +0000 Subject: [PATCH] *** empty log message *** --- org.glite.lb.doc/examples/cons_example3.cpp | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) 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"; -- 1.8.2.3