summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-25 22:44:09 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-25 22:44:09 +0000
commit5ff43b1a4abd06a47a996b817846567f8d1bc615 (patch)
tree59d13dad781bf3f285c337429128fb241007ab3d /src/test
parente1f398363812115611d20c0c803802c78ed65974 (diff)
downloadlibbu++-5ff43b1a4abd06a47a996b817846567f8d1bc615.tar.gz
libbu++-5ff43b1a4abd06a47a996b817846567f8d1bc615.tar.bz2
libbu++-5ff43b1a4abd06a47a996b817846567f8d1bc615.tar.xz
libbu++-5ff43b1a4abd06a47a996b817846567f8d1bc615.zip
Fixed more stuff in the connection class. Yay.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/clistress/main.cpp6
-rw-r--r--src/test/srvstress/main.cpp4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/test/clistress/main.cpp b/src/test/clistress/main.cpp
index 0869945..6b0ac66 100644
--- a/src/test/clistress/main.cpp
+++ b/src/test/clistress/main.cpp
@@ -6,10 +6,12 @@ int main()
6 6
7 c.open("localhost", 4001 ); 7 c.open("localhost", 4001 );
8 8
9 c.appendOutput("d"); 9 c.appendOutput("w");
10 c.writeOutput(); 10 c.writeOutput();
11 11
12 c.waitForInput( 5, 40, 0 ); 12 c.waitForInput( 6, 5, 0 );
13
14 printf("read: %s\n", c.getInput() );
13 15
14 c.close(); 16 c.close();
15 17
diff --git a/src/test/srvstress/main.cpp b/src/test/srvstress/main.cpp
index c7795e4..7fe7657 100644
--- a/src/test/srvstress/main.cpp
+++ b/src/test/srvstress/main.cpp
@@ -13,6 +13,10 @@ public:
13 case 'd': 13 case 'd':
14 throw "Hello"; 14 throw "Hello";
15 break; 15 break;
16
17 case 'w':
18 getConnection()->appendOutput("Hello");
19 break;
16 }; 20 };
17 21
18 return true; 22 return true;