From 8d1f0d8cd595c5e9690b2745ec89a955bf9e397e Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Wed, 8 Jan 2014 16:14:02 +0100 Subject: Started http to instant-messaging bridge --- apps/samples/http2im/http2im.scxml | 49 ++++++++++++++++++++++++ contrib/build-scripts/pidgin-configure | 2 +- src/uscxml/server/HTTPServer.cpp | 3 +- test/samples/uscxml/test-instant-messaging.scxml | 10 ++--- 4 files changed, 56 insertions(+), 8 deletions(-) create mode 100644 apps/samples/http2im/http2im.scxml diff --git a/apps/samples/http2im/http2im.scxml b/apps/samples/http2im/http2im.scxml new file mode 100644 index 0000000..a2b2090 --- /dev/null +++ b/apps/samples/http2im/http2im.scxml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + here]]> + + + + + \ No newline at end of file diff --git a/contrib/build-scripts/pidgin-configure b/contrib/build-scripts/pidgin-configure index 34a9ffe..016cf0f 100644 --- a/contrib/build-scripts/pidgin-configure +++ b/contrib/build-scripts/pidgin-configure @@ -1 +1 @@ -./configure --disable-nls --disable-gtkui --disable-consoleui --disable-gstreamer --disable-vv --disable-meanwhile --disable-avahi --disable-dbus --disable-gnome-keyring --disable-kwallet --disable-nss --disable-gnutls --disable-tcl --disable-perl --disable-tk --enable-static --with-pic \ No newline at end of file +LIBS="-lz" ./configure --disable-nls --disable-gtkui --disable-consoleui --disable-gstreamer --disable-vv --disable-meanwhile --disable-avahi --disable-dbus --disable-gnome-keyring --disable-kwallet --disable-nss --disable-gnutls --disable-tcl --disable-perl --disable-tk --enable-static --with-pic \ No newline at end of file diff --git a/src/uscxml/server/HTTPServer.cpp b/src/uscxml/server/HTTPServer.cpp index 6b24cd8..de78ba9 100644 --- a/src/uscxml/server/HTTPServer.cpp +++ b/src/uscxml/server/HTTPServer.cpp @@ -550,8 +550,7 @@ bool HTTPServer::registerServlet(const std::string& path, HTTPServlet* servlet) servlet->setURL(servletURL.str()); INSTANCE->_httpServlets[suffixedPath] = servlet; - -// LOG(INFO) << "HTTP Servlet listening at: " << servletURL.str() << std::endl; + LOG(INFO) << "HTTP Servlet listening at: " << servletURL.str() << std::endl; // register callback evhttp_set_cb(INSTANCE->_http, ("/" + suffixedPath).c_str(), HTTPServer::httpRecvReqCallback, servlet); diff --git a/test/samples/uscxml/test-instant-messaging.scxml b/test/samples/uscxml/test-instant-messaging.scxml index e7f8555..dccaa75 100644 --- a/test/samples/uscxml/test-instant-messaging.scxml +++ b/test/samples/uscxml/test-instant-messaging.scxml @@ -16,7 +16,7 @@ - + @@ -39,12 +39,12 @@ + --> + - + here]]> -- cgit v0.12