summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@sakuya.local>2010-11-07 22:09:16 +0100
committerVegard Storheil Eriksen <zyp@sakuya.local>2010-11-07 22:09:16 +0100
commiteeb5e4736cf7fc71eb35f8a086fda841b3c4f2f3 (patch)
tree04047160cbc06678e534e75079bd7f00f7588542 /server
parent64fdd300fe671292db68b9a94e4df0321f08ae07 (diff)
Test connecting from client, reading messages from server and echoing them back.
Diffstat (limited to 'server')
-rw-r--r--server/tcpserver.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tcpserver.cpp b/server/tcpserver.cpp
index 528d1a2..2977b0f 100644
--- a/server/tcpserver.cpp
+++ b/server/tcpserver.cpp
@@ -23,6 +23,11 @@ void TCPServer::handle_connection(Connection::p connection, const boost::system:
connection->connected();
+ Message::p m = Message::create();
+ m->payload = "Hei morn!";
+
+ connection->send(m);
+
// Start listening for another connection attempt.
listen();
} \ No newline at end of file