aboutsummaryrefslogtreecommitdiff
path: root/tests/websockets_bi_side.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-04 12:19:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-04 12:35:56 -0700
commit020c6b72916ddfc09170ab4de0e8f5d2793edcbe (patch)
tree481376e8c48cb78de3168c595e6cbb559e8d3d50 /tests/websockets_bi_side.c
parent2ebaa5c8e1c3715c37ca72e6b687bd18bce14c10 (diff)
parent4c41c69f202a1b98e10a2a315c3b97bca7bcea04 (diff)
Merge branch 'incoming' of github.com:kanaka/emscripten into incoming
Diffstat (limited to 'tests/websockets_bi_side.c')
-rw-r--r--tests/websockets_bi_side.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/websockets_bi_side.c b/tests/websockets_bi_side.c
index 12b790fd..1d557ed8 100644
--- a/tests/websockets_bi_side.c
+++ b/tests/websockets_bi_side.c
@@ -54,10 +54,17 @@ int main(void)
exit(EXIT_FAILURE);
}
+#if TEST_FILE_OPS
+ printf("write..\n");
+
+ char data[] = "hello from the other siide (fileops)\n";
+ write(SocketFD, data, sizeof(data));
+#else
printf("send..\n");
char data[] = "hello from the other siide\n";
send(SocketFD, data, sizeof(data), 0);
+#endif
printf("stall..\n");