comparison 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
comparison
equal deleted inserted replaced
8:60cf25102fb2 9:5412a1ff2e49
26 client.connect(new IPv4Address("localhost", 5555)); 26 client.connect(new IPv4Address("localhost", 5555));
27 27
28 while(true) 28 while(true)
29 { 29 {
30 char buf[] = Cin.copyln(true); 30 char buf[] = Cin.copyln(true);
31 if (buf == "quit\n")
32 break;
31 client.send(buf); 33 client.send(buf);
32 } 34 }
35 c_vat.exit();
36 delete client;
33 return 0; 37 return 0;
34 } 38 }
35 39