summaryrefslogtreecommitdiffstats
path: root/test/src/test-sockets.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-10-12 11:11:06 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-10-12 11:11:06 (GMT)
commitfa90b5749693d9f5817ad1f106334a0877171fd3 (patch)
tree8d53b5c820590cad54893bc575ef55df38f55d23 /test/src/test-sockets.cpp
parentc36b123a60278caef5d06e8a7d0b3d338d669c75 (diff)
downloaduscxml-fa90b5749693d9f5817ad1f106334a0877171fd3.zip
uscxml-fa90b5749693d9f5817ad1f106334a0877171fd3.tar.gz
uscxml-fa90b5749693d9f5817ad1f106334a0877171fd3.tar.bz2
Major work on PROMELA datamodel
Diffstat (limited to 'test/src/test-sockets.cpp')
-rw-r--r--test/src/test-sockets.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/src/test-sockets.cpp b/test/src/test-sockets.cpp
index 993aaff..16234ee 100644
--- a/test/src/test-sockets.cpp
+++ b/test/src/test-sockets.cpp
@@ -74,10 +74,10 @@ int main(int argc, char** argv) {
// LogServer server(PF_INET, SOCK_STREAM, 0);
server.listen("*", 1235);
server.setBlockSizeRead(1);
-
+
TestClient client(PF_INET, SOCK_STREAM, 0);
client.connect("127.0.0.1", 1235);
-
+
int iterations = 1000;
std::stringstream contentSS;
for (int i = 0; i < iterations; i++) {
@@ -94,7 +94,7 @@ int main(int argc, char** argv) {
packetSeq = 0;
CountingPacketServer server(PF_INET, SOCK_STREAM, 0, std::string("\0", 1));
server.listen("*", 1235);
-
+
TestClient client(PF_INET, SOCK_STREAM, 0);
client.connect("127.0.0.1", 1235);
@@ -107,9 +107,9 @@ int main(int argc, char** argv) {
while(packetSeq != iterations)
tthread::this_thread::sleep_for(tthread::chrono::milliseconds(20));
}
-
+
exit(0);
-
+
if (1) {
// start server socket and connect
int iterations = 100;