summaryrefslogtreecommitdiff
path: root/src/test.h
blob: 753109c62d69f702de614697fc5d2421030385ad (plain)
    1 // 
    2 // Copyright (C) 2015 Aaron Ball <nullspoon@iohq.net>
    3 // 
    4 // Cnetbench is free software: you can redistribute it and/or modify
    5 // it under the terms of the GNU General Public License as published by
    6 // the Free Software Foundation, either version 3 of the License, or
    7 // (at your option) any later version.
    8 // 
    9 // Cnetbench is distributed in the hope that it will be useful,
   10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
   11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12 // GNU General Public License for more details.
   13 // 
   14 // You should have received a copy of the GNU General Public License
   15 // along with cnetbench.  If not, see <http://www.gnu.org/licenses/>.
   16 // 
   17 #include <stdlib.h>
   18 #include <stdio.h>
   19 #include <string.h>
   20 // Networking-related tasks
   21 #include <sys/socket.h>
   22 #include <arpa/inet.h>
   23 // For pid timing
   24 #include <sys/time.h>
   25 #include <wait.h>
   26 // For fork()
   27 #include <unistd.h>
   28 
   29 // for time_pids function
   30 #include "common.h"
   31 
   32 typedef struct {
   33   int  amount;
   34   int  streams;
   35   char server[256];
   36   int  port;
   37 } t_test;
   38 
   39 void new_test(t_test*);
   40 
   41 int test_execute(t_test*);
   42 
   43 int test_start_all(t_test*, struct timeval*, struct timeval*);

Generated by cgit