X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e38d01e7b27d128a6d756194166ce8e0445a33b2..20029610b4da98563453de7218813092b6bc95b7:/include/amok/bandwidth.h diff --git a/include/amok/bandwidth.h b/include/amok/bandwidth.h index 884fb196e6..966bbdeaed 100644 --- a/include/amok/bandwidth.h +++ b/include/amok/bandwidth.h @@ -2,11 +2,10 @@ /* amok_bandwidth - Bandwidth test facilities */ -/* Authors: Martin Quinson */ -/* Copyright (C) 2003, 2004 the OURAGAN project. */ +/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it - under the terms of the license (GNU LGPL) which comes with this package. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #ifndef AMOK_BANDWIDTH_H #define AMOK_BANDWIDTH_H @@ -35,11 +34,10 @@ void amok_bw_exit(void); * Conduct a bandwidth test from the local process to the given peer. * This call is blocking until the end of the experiment. */ -gras_error_t amok_bw_test(gras_socket_t peer, - unsigned int buf_size,unsigned int exp_size,unsigned int msg_size, +xbt_error_t amok_bw_test(gras_socket_t peer, + unsigned long int buf_size,unsigned long int exp_size,unsigned long int msg_size, /*OUT*/ double *sec, double *bw); -#if 0 /** * grasbw_request: * @from_name: Name of the host we are asking to do a experiment with (to_name:to_port) @@ -57,11 +55,12 @@ gras_error_t amok_bw_test(gras_socket_t peer, * Conduct a bandwidth test from the process from_host:from_port to to_host:to_port. * This call is blocking until the end of the experiment. */ -gras_error_t grasbw_request(const char* from_name,unsigned int from_port, +xbt_error_t amok_bw_request(const char* from_name,unsigned int from_port, const char* to_name,unsigned int to_port, - unsigned int bufSize,unsigned int expSize,unsigned int msgSize, + unsigned long int bufSize,unsigned long int expSize,unsigned long int msgSize, /*OUT*/ double *sec, double*bw); +#if 0 /* *************************************************************************** * Link saturation @@ -81,7 +80,7 @@ gras_error_t grasbw_request(const char* from_name,unsigned int from_port, * Ask the process 'from_name:from_port' to start to saturate the link between itself * and to_name:to_name. */ -gras_error_t grasbw_saturate_start(const char* from_name,unsigned int from_port, +xbt_error_t grasbw_saturate_start(const char* from_name,unsigned int from_port, const char* to_name,unsigned int to_port, unsigned int msgSize, unsigned int timeout); @@ -97,7 +96,7 @@ gras_error_t grasbw_saturate_start(const char* from_name,unsigned int from_port, * Ask the process 'from_name:from_port' to stop saturating the link between itself * and to_name:to_name. */ -gras_error_t grasbw_saturate_stop(const char* from_name,unsigned int from_port, +xbt_error_t grasbw_saturate_stop(const char* from_name,unsigned int from_port, const char* to_name,unsigned int to_port);