Discussion:
[Cppcms-users] Fwd: WebGUI with RPC Json Server
Daniel Pomrehn
2014-03-04 19:04:11 UTC
Permalink
Hi,

I use cppcms to build a WebGUI for a C++ Application.
On the GUI I want to use some AJAX calls to the C++ Application.

Will I have to build a second application for handle the Ajax Request or
can I put it into the same application? How must Confguration look like?
I'm using URL mapping / dispatcher for different path to the pages of the
WebGUI.

Thanks in advance
Best regards
Danny
Artyom Beilis
2014-03-05 07:03:34 UTC
Permalink
You can use embedded HTTP server and run the main cppcms::service in its own thread thus combining the CppCMS WEB and the application into a single instance.

Configuration - you can provide a path to Json configuration file or use json object to configure it (cppcms::service has a constructor the receives a cppcms::json::value object)

Artyom Beilis
--------------
CppCMS - C++ Web Framework:   http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/

--------------------------------------------
On Tue, 3/4/14, Daniel Pomrehn <***@gmail.com> wrote:

Subject: [Cppcms-users] Fwd: WebGUI with RPC Json Server
To: cppcms-***@lists.sourceforge.net
Date: Tuesday, March 4, 2014, 9:04 PM

Hi, 
I use cppcms to build a WebGUI for a C++
Application. On the GUI I want to use some AJAX
calls to the C++ Application. 

Will I have to build a second application for
handle the Ajax Request or can I put it into the same
application? How must Confguration look like? 
I'm using URL mapping / dispatcher for different
path to the pages of the WebGUI. 
Thanks in advanceBest
regardsDanny



-----Inline Attachment Follows-----

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make
the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that
actually works.
Faster operations. Version large binaries.  Built-in
WAN optimization and the
freedom to use Git, Perforce or both. Make the move to
Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
-----Inline Attachment Follows-----

_______________________________________________
Cppcms-users mailing list
Cppcms-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cppcms-users

Loading...