// // Copyright (C) 2015 Aaron Ball // // Cnetbench is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Cnetbench is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with cnetbench. If not, see . // #include #include #include // Networking-related tasks #include #include // For pid timing #include #include // For fork() #include // for time_pids function #include "common.h" typedef struct { int amount; int streams; char server[256]; int port; } t_test; void new_test(t_test*); int test_execute(t_test*); int test_start_all(t_test*, struct timeval*, struct timeval*);