added the tcp code in, but its not running yet
[ga4php.git] / unittests / socketsend.php
diff --git a/unittests/socketsend.php b/unittests/socketsend.php
new file mode 100644 (file)
index 0000000..dbafa38
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+$res = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
+
+socket_connect($res, "127.0.0.1", 10056);
+
+$str = "asdflkjahsdfkjhlaskdfhlaskjdflkasdjfh:EOD";
+socket_send($res, $str, strlen($str), 0);
+echo "sent\n";
+
+sleep(100000);
+
+?>
\ No newline at end of file