File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / iperf / src / iperf_util.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Oct 18 13:28:18 2016 UTC (7 years, 8 months ago) by misho
Branches: iperf, MAIN
CVS tags: v3_1_3p0, v3_1_3, HEAD
iperf3 3.1.3

    1: /*
    2:  * iperf, Copyright (c) 2014, The Regents of the University of
    3:  * California, through Lawrence Berkeley National Laboratory (subject
    4:  * to receipt of any required approvals from the U.S. Dept. of
    5:  * Energy).  All rights reserved.
    6:  *
    7:  * If you have questions about your rights to use or distribute this
    8:  * software, please contact Berkeley Lab's Technology Transfer
    9:  * Department at TTD@lbl.gov.
   10:  *
   11:  * NOTICE.  This software is owned by the U.S. Department of Energy.
   12:  * As such, the U.S. Government has been granted for itself and others
   13:  * acting on its behalf a paid-up, nonexclusive, irrevocable,
   14:  * worldwide license in the Software to reproduce, prepare derivative
   15:  * works, and perform publicly and display publicly.  Beginning five
   16:  * (5) years after the date permission to assert copyright is obtained
   17:  * from the U.S. Department of Energy, and subject to any subsequent
   18:  * five (5) year renewals, the U.S. Government is granted for itself
   19:  * and others acting on its behalf a paid-up, nonexclusive,
   20:  * irrevocable, worldwide license in the Software to reproduce,
   21:  * prepare derivative works, distribute copies to the public, perform
   22:  * publicly and display publicly, and to permit others to do so.
   23:  *
   24:  * This code is distributed under a BSD style license, see the LICENSE
   25:  * file for complete information.
   26:  */
   27: #ifndef __IPERF_UTIL_H
   28: #define __IPERF_UTIL_H
   29: 
   30: #include "cjson.h"
   31: #include <sys/select.h>
   32: 
   33: void make_cookie(char *);
   34: 
   35: int is_closed(int);
   36: 
   37: double timeval_to_double(struct timeval *tv);
   38: 
   39: int timeval_equals(struct timeval *tv0, struct timeval *tv1);
   40: 
   41: double timeval_diff(struct timeval *tv0, struct timeval *tv1);
   42: 
   43: int delay(int64_t ns);
   44: 
   45: void cpu_util(double pcpu[3]);
   46: 
   47: const char* get_system_info(void);
   48: 
   49: const char* get_optional_features(void);
   50: 
   51: cJSON* iperf_json_printf(const char *format, ...);
   52: 
   53: void iperf_dump_fdset(FILE *fp, char *str, int nfds, fd_set *fds);
   54: 
   55: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>