3 /* bandwidth - network bandwidth tests facilities */
5 /* module's private interface masked even to other parts of AMOK. */
7 /* Copyright (c) 2004 Martin Quinson. All rights reserved. */
9 /* This program is free software; you can redistribute it and/or modify it
10 * under the terms of the license (GNU LGPL) which comes with this package. */
13 #ifndef AMOK_BANDWIDTH_PRIVATE_H
14 #define AMOK_BANDWIDTH_PRIVATE_H
17 #include "amok/bandwidth.h"
22 * Request for a BW experiment.
23 * If host==NULL, it should be between the sender and the receiver.
24 * If not, it should be between between the receiver and @host (3-tiers).
27 xbt_host_t host; /* host+raw socket to use */
28 unsigned int buf_size;
29 unsigned int exp_size;
30 unsigned int msg_size;
31 } s_bw_request_t,*bw_request_t;
36 * Result of a BW experiment (payload when answering).
37 * if err.msg != NULL, it wasn't sucessful. Check err.msg and err.code to see why.
41 s_amok_remoterr_t err;
42 unsigned int timestamp;
51 * Description of a saturation experiment (payload asking some host to collaborate for that)
54 xbt_host_t host; /* host+raw socket to use */
55 unsigned int msg_size;
57 } s_sat_request_t,*sat_request_t;
59 /* Prototypes of local callbacks */
60 int amok_bw_cb_bw_handshake(gras_socket_t expeditor,
62 int amok_bw_cb_bw_request(gras_socket_t expeditor,
65 int amok_bw_cb_sat_start(gras_socket_t expeditor,
67 int amok_bw_cb_sat_begin(gras_socket_t expeditor,
70 #endif /* AMOK_BANDWIDTH_PRIVATE_H */