summaryrefslogtreecommitdiff
path: root/src/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.h')
-rw-r--r--src/test.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/test.h b/src/test.h
new file mode 100644
index 0000000..753109c
--- /dev/null
+++ b/src/test.h
@@ -0,0 +1,43 @@
+//
+// Copyright (C) 2015 Aaron Ball <nullspoon@iohq.net>
+//
+// 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 <http://www.gnu.org/licenses/>.
+//
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+// Networking-related tasks
+#include <sys/socket.h>
+#include <arpa/inet.h>
+// For pid timing
+#include <sys/time.h>
+#include <wait.h>
+// For fork()
+#include <unistd.h>
+
+// 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*);

Generated by cgit