From eeb5e4736cf7fc71eb35f8a086fda841b3c4f2f3 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 7 Nov 2010 22:09:16 +0100 Subject: Test connecting from client, reading messages from server and echoing them back. --- server/tcpserver.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3