summaryrefslogtreecommitdiffstats
path: root/src/client/HTTPClientReceiver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-28 23:11:21 +0000
committerDavid Robillard <d@drobilla.net>2009-05-28 23:11:21 +0000
commitb3c31c94eb572063ec97f24a89e5f7f98d5eae41 (patch)
tree1b8096a810fb56798c69e43e85938f059da18622 /src/client/HTTPClientReceiver.cpp
parenta1b651326087ffce165635af4fba1c70c16b5b31 (diff)
downloadingen-b3c31c94eb572063ec97f24a89e5f7f98d5eae41.tar.gz
ingen-b3c31c94eb572063ec97f24a89e5f7f98d5eae41.tar.bz2
ingen-b3c31c94eb572063ec97f24a89e5f7f98d5eae41.zip
Working engine->client plugin information communication via HTTP.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2044 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/HTTPClientReceiver.cpp')
-rw-r--r--src/client/HTTPClientReceiver.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/HTTPClientReceiver.cpp b/src/client/HTTPClientReceiver.cpp
index 9d603c2d..6d0dbb1b 100644
--- a/src/client/HTTPClientReceiver.cpp
+++ b/src/client/HTTPClientReceiver.cpp
@@ -99,7 +99,7 @@ HTTPClientReceiver::Listener::Listener(HTTPClientReceiver* receiver, const std::
void
HTTPClientReceiver::update(const std::string& str)
{
- cout << _parser->parse_update(_world, _target.get(), str, "/");
+ cout << _parser->parse_update(_world, _target.get(), str, ".");
}
void
@@ -136,6 +136,10 @@ HTTPClientReceiver::message_callback(SoupSession* session, SoupMessage* msg, voi
{
HTTPClientReceiver* me = (HTTPClientReceiver*)ptr;
const string path = soup_message_get_uri(msg)->path;
+
+ /*cerr << "HTTP MESSAGE " << path << endl;
+ cerr << msg->response_body->data << endl;*/
+
if (path == Path::root_uri) {
me->_target->response_ok(0);
@@ -147,7 +151,7 @@ HTTPClientReceiver::message_callback(SoupSession* session, SoupMessage* msg, voi
me->_target->response_ok(0);
me->_parser->parse_string(me->_world, me->_target.get(),
Glib::ustring(msg->response_body->data),
- Glib::ustring("."));
+ Glib::ustring(""));
}
} else if (path == "/patch") {