diff test/chatclient.d @ 9:5412a1ff2e49

adding chat client and more updates
author rick@minifunk
date Sat, 12 Jul 2008 10:42:41 -0400
parents 2c6ab06a8829
children d6a3cfe7c3de
line wrap: on
line diff
--- a/test/chatclient.d	Wed Jul 09 00:56:21 2008 -0400
+++ b/test/chatclient.d	Sat Jul 12 10:42:41 2008 -0400
@@ -28,8 +28,12 @@
     while(true)
     {
         char buf[] = Cin.copyln(true);
+        if (buf == "quit\n")
+            break;
         client.send(buf);             
     }
+    c_vat.exit();
+    delete client;
     return 0;
 }