diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-03 18:30:18 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-03 18:30:18 -0700 |
commit | 4a5d3521d7f72b8aded5d2bddd74d5541d1eff3f (patch) | |
tree | 41f6c0d8b359b525188d65cdd6a11ea65ce7d795 /tests/enet_client.c | |
parent | 7cf5981aa742f9e031a5c5e6d45486d2eed0b66d (diff) |
socket debugging
Diffstat (limited to 'tests/enet_client.c')
-rw-r--r-- | tests/enet_client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/enet_client.c b/tests/enet_client.c index bc4d8ba7..f3101306 100644 --- a/tests/enet_client.c +++ b/tests/enet_client.c @@ -28,6 +28,7 @@ void main_loop() { /* Reset the peer's client information. */ event.peer -> data = NULL; enet_host_destroy(host); + break; default: printf("whaaa? %d\n", event.type); } @@ -79,6 +80,8 @@ int main (int argc, char ** argv) emscripten_run_script("console.log('adding iframe');" "var iframe = document.createElement('iframe');" "iframe.src = 'server.html';" + "iframe.width = '100%';" + "iframe.height = '25%';" "document.body.appendChild(iframe);" "console.log('added.');"); #endif |