- ZOOM_connection z[parameters.concurrent];
- ZOOM_resultset r[parameters.concurrent];
- ZOOM_options o = ZOOM_options_create();
-
+ z = xmalloc(sizeof(*z) * parameters.concurrent);
+ r = xmalloc(sizeof(*r) * parameters.concurrent);
+ o = ZOOM_options_create();
//ZOOM_options_set (o, "elementSetName", "F");
/* connect to all concurrent connections*/
//ZOOM_options_set (o, "elementSetName", "F");
/* connect to all concurrent connections*/
for ( i = 0; i < parameters.concurrent; i++){
/* create connection - pass options (they are the same for all) */
z[i] = ZOOM_connection_create(o);
for ( i = 0; i < parameters.concurrent; i++){
/* create connection - pass options (they are the same for all) */
z[i] = ZOOM_connection_create(o);
/* network I/O. pass number of connections and array of connections */
while ((i = ZOOM_event (parameters.concurrent, z)))
{
/* network I/O. pass number of connections and array of connections */
while ((i = ZOOM_event (parameters.concurrent, z)))
{
time_sec(&time), time_usec(&time),
i-1, progress,
event, zoom_events[event],
time_sec(&time), time_usec(&time),
i-1, progress,
event, zoom_events[event],