#include <stdio.h>
+#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
{ NULL, 0, NULL, 0 }
};
+double gen_pareto_random(double min, double k)
+{
+ double u = rand() / (RAND_MAX+1.0);
+ return min * pow(u, -1.0 / k);
+}
+
void read_ip_list(char *filename, struct in_addr **addr_list, unsigned *num, unsigned *room)
{
char buf[256];
void *sender_worker(void *arg)
{
+ unsigned i;
+
printf("Dummy sender worker\n");
+
+ for (i = 0; i < 1000; ++i) {
+ unsigned bytes = (unsigned)gen_pareto_random(1048576.0, 1.0);
+ printf("Sending %u bytes\n", bytes);
+ }
+
pthread_exit(0);
}