diff options
| author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-06-14 14:56:55 +0200 | 
|---|---|---|
| committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-06-14 14:56:55 +0200 | 
| commit | 337ab9fe73b86306b72b9eaae3b7be759f7bbd36 (patch) | |
| tree | d7b237631ef17df911ec4aef766aba085a63bd30 /src/tools/cbr/cbr_client.c | |
| parent | 6019a5b1ee574c8cea485ce5ba68ff77a24b4786 (diff) | |
| parent | 6271d09bdd17114c3095b7e819a7bcded14f26a5 (diff) | |
| download | ouroboros-337ab9fe73b86306b72b9eaae3b7be759f7bbd36.tar.gz ouroboros-337ab9fe73b86306b72b9eaae3b7be759f7bbd36.zip | |
Merge remote-tracking branch 'upstream/be' into be-llc
Diffstat (limited to 'src/tools/cbr/cbr_client.c')
| -rw-r--r-- | src/tools/cbr/cbr_client.c | 16 | 
1 files changed, 7 insertions, 9 deletions
| diff --git a/src/tools/cbr/cbr_client.c b/src/tools/cbr/cbr_client.c index b0c04f39..1cc325b8 100644 --- a/src/tools/cbr/cbr_client.c +++ b/src/tools/cbr/cbr_client.c @@ -35,7 +35,12 @@ static void busy_wait_until(const struct timespec * deadline)                  clock_gettime(CLOCK_REALTIME, &now);  } -int client_main(int duration, int size, long rate, bool flood, bool sleep) +int client_main(char * server, +                int duration, +                int size, +                long rate, +                bool flood, +                bool sleep)  {          int fd = 0;          int result = 0; @@ -49,15 +54,10 @@ int client_main(int duration, int size, long rate, bool flood, bool sleep)          struct timespec intv = {(gap / BILLION), gap % BILLION};          int ms; -        if (ap_init(CLIENT_AP_NAME)) { -                printf("Failed to init AP.\n"); -                return -1; -        } -          printf("Client started, duration %d, rate %lu b/s, size %d B.\n",                  duration, rate, size); -        fd = flow_alloc(SERVER_AP_NAME, NULL, NULL); +        fd = flow_alloc(server, NULL, NULL);          if (fd < 0) {                  printf("Failed to allocate flow.\n");                  ap_fini(); @@ -122,7 +122,5 @@ int client_main(int duration, int size, long rate, bool flood, bool sleep)          flow_dealloc(fd); -        ap_fini(); -          return 0;  } | 
