Revision 46c24e94 loop.c

View differences:

loop.c
10 10
#include <stdint.h>
11 11
#include <stdlib.h>
12 12
#include <stdio.h>
13
#include <stdbool.h>
13 14

  
14 15
#include <net_helper.h>
15 16
#include <topmanager.h>
......
86 87
  }
87 88
}
88 89

  
89
void source_loop(const char *fname, struct nodeID *s, int csize, int chunks)
90
void source_loop(const char *fname, struct nodeID *s, int csize, int chunks, bool loop)
90 91
{
91 92
  int done = 0;
92 93
  static uint8_t buff[BUFFSIZE];
93 94
  int cnt = 0;
94 95

  
95
  source_init(fname, s);
96
  source_init(fname, s, loop);
96 97
  while (!done) {
97 98
    int len, res;
98 99
    struct timeval tv;

Also available in: Unified diff