cppcms-users Mailing List for CppCMS C++ Web Framework (Page 44)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
| 2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
| 2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
| 2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
| 2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
| 2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
| 2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
| 2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
| 2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
| 2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: Shiv S. D. <shi...@gm...> - 2013-11-29 11:02:16
|
Try to debug using gdb and send a stack trace where it gets stuck. That
will help.
On Fri, Nov 29, 2013 at 3:51 PM, Karsten Ahnert <
kar...@go...> wrote:
> My one hangs. I use gcc 4.7.3 and ubuntu 13.04 and CppCMS 1.0.4.
>
>
>
> On 29.11.2013 11:09, Shiv Shankar Dayal wrote:
> > Tested with GCC 4.7.0 GNU/Linux Mint 15 CppCMS 1.0.4 seems to work
> > fine as it prints "Exception" on console and program terminates.
> >
> >
> > On Fri, Nov 29, 2013 at 3:32 PM, Karsten Ahnert
> > <kar...@go... <mailto:kar...@go...>>
> > wrote:
> >
> > Hi,
> >
> > cppcms hangs if the constructor of cppcms::application and derived
> class
> > throw, see the code below. Any ideas how to fix this?
> >
> >
> >
> >
> > #include <cppcms/applications_pool.h>
> > #include <cppcms/service.h>
> > #include <cppcms/http_response.h>
> > #include <cppcms/application.h>
> >
> > #include <iostream>
> > #include <stdexcept>
> >
> > using namespace std;
> >
> > class my_app : public cppcms::application
> > {
> > public:
> >
> > my_app( cppcms::service& srv )
> > : cppcms::application( srv )
> > {
> > throw std::runtime_error( "Exception" );
> > }
> >
> > virtual void main(std::string url)
> > {
> > cout << "Hello world!" << endl;
> >
> > response().out() <<
> > "<html>\n"
> > "<body>\n"
> > " <h1>Hello World</h1>\n"
> > "</body>\n"
> > "</html>\n";
> > }
> > };
> >
> >
> > int main( int argc , char **argv )
> > {
> > try
> > {
> > cppcms::service app( argc , argv );
> > app.applications_pool().mount( cppcms::applications_factory<
> > my_app >() );
> > app.run();
> > }
> > catch( std::exception const &e )
> > {
> > std::cerr << e.what() << std::endl;
> > }
> >
> > return 0;
> > }
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business. Most
> IT
> > organizations don't have a clear picture of how application
> performance
> > affects their revenue. With AppDynamics, you get 100% visibility
> > into your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Cppcms-users mailing list
> > Cpp...@li...
> > <mailto:Cpp...@li...>
> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> >
> >
> >
> >
> > --
> > Respect,
> > Shiv Shankar Dayal
> >
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business. Most IT
> > organizations don't have a clear picture of how application performance
> > affects their revenue. With AppDynamics, you get 100% visibility into
> your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> >
> >
> >
> > _______________________________________________
> > Cppcms-users mailing list
> > Cpp...@li...
> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> >
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Respect,
Shiv Shankar Dayal
|
|
From: Karsten A. <kar...@go...> - 2013-11-29 10:21:22
|
My one hangs. I use gcc 4.7.3 and ubuntu 13.04 and CppCMS 1.0.4.
On 29.11.2013 11:09, Shiv Shankar Dayal wrote:
> Tested with GCC 4.7.0 GNU/Linux Mint 15 CppCMS 1.0.4 seems to work
> fine as it prints "Exception" on console and program terminates.
>
>
> On Fri, Nov 29, 2013 at 3:32 PM, Karsten Ahnert
> <kar...@go... <mailto:kar...@go...>>
> wrote:
>
> Hi,
>
> cppcms hangs if the constructor of cppcms::application and derived class
> throw, see the code below. Any ideas how to fix this?
>
>
>
>
> #include <cppcms/applications_pool.h>
> #include <cppcms/service.h>
> #include <cppcms/http_response.h>
> #include <cppcms/application.h>
>
> #include <iostream>
> #include <stdexcept>
>
> using namespace std;
>
> class my_app : public cppcms::application
> {
> public:
>
> my_app( cppcms::service& srv )
> : cppcms::application( srv )
> {
> throw std::runtime_error( "Exception" );
> }
>
> virtual void main(std::string url)
> {
> cout << "Hello world!" << endl;
>
> response().out() <<
> "<html>\n"
> "<body>\n"
> " <h1>Hello World</h1>\n"
> "</body>\n"
> "</html>\n";
> }
> };
>
>
> int main( int argc , char **argv )
> {
> try
> {
> cppcms::service app( argc , argv );
> app.applications_pool().mount( cppcms::applications_factory<
> my_app >() );
> app.run();
> }
> catch( std::exception const &e )
> {
> std::cerr << e.what() << std::endl;
> }
>
> return 0;
> }
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility
> into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> <mailto:Cpp...@li...>
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
>
>
> --
> Respect,
> Shiv Shankar Dayal
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
|
|
From: Shiv S. D. <shi...@gm...> - 2013-11-29 10:09:37
|
Tested with GCC 4.7.0 GNU/Linux Mint 15 CppCMS 1.0.4 seems to work
fine as it prints "Exception" on console and program terminates.
On Fri, Nov 29, 2013 at 3:32 PM, Karsten Ahnert <
kar...@go...> wrote:
> Hi,
>
> cppcms hangs if the constructor of cppcms::application and derived class
> throw, see the code below. Any ideas how to fix this?
>
>
>
>
> #include <cppcms/applications_pool.h>
> #include <cppcms/service.h>
> #include <cppcms/http_response.h>
> #include <cppcms/application.h>
>
> #include <iostream>
> #include <stdexcept>
>
> using namespace std;
>
> class my_app : public cppcms::application
> {
> public:
>
> my_app( cppcms::service& srv )
> : cppcms::application( srv )
> {
> throw std::runtime_error( "Exception" );
> }
>
> virtual void main(std::string url)
> {
> cout << "Hello world!" << endl;
>
> response().out() <<
> "<html>\n"
> "<body>\n"
> " <h1>Hello World</h1>\n"
> "</body>\n"
> "</html>\n";
> }
> };
>
>
> int main( int argc , char **argv )
> {
> try
> {
> cppcms::service app( argc , argv );
> app.applications_pool().mount( cppcms::applications_factory<
> my_app >() );
> app.run();
> }
> catch( std::exception const &e )
> {
> std::cerr << e.what() << std::endl;
> }
>
> return 0;
> }
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Respect,
Shiv Shankar Dayal
|
|
From: Karsten A. <kar...@go...> - 2013-11-29 10:02:26
|
Hi,
cppcms hangs if the constructor of cppcms::application and derived class
throw, see the code below. Any ideas how to fix this?
#include <cppcms/applications_pool.h>
#include <cppcms/service.h>
#include <cppcms/http_response.h>
#include <cppcms/application.h>
#include <iostream>
#include <stdexcept>
using namespace std;
class my_app : public cppcms::application
{
public:
my_app( cppcms::service& srv )
: cppcms::application( srv )
{
throw std::runtime_error( "Exception" );
}
virtual void main(std::string url)
{
cout << "Hello world!" << endl;
response().out() <<
"<html>\n"
"<body>\n"
" <h1>Hello World</h1>\n"
"</body>\n"
"</html>\n";
}
};
int main( int argc , char **argv )
{
try
{
cppcms::service app( argc , argv );
app.applications_pool().mount( cppcms::applications_factory<
my_app >() );
app.run();
}
catch( std::exception const &e )
{
std::cerr << e.what() << std::endl;
}
return 0;
}
|
|
From: Shiv S. D. <shi...@gm...> - 2013-11-29 09:30:02
|
Hi, Suppose an app is running on multiple machines then how should they synchronize data? Should OpenMPI be used to do message passing to talk among each other because then thread_shared will not work? -- Respect, Shiv Shankar Dayal |
|
From: Artyom B. <art...@ya...> - 2013-11-29 07:55:58
|
Why not both? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: Re: [Cppcms-users] two tests failiing To: cpp...@li... Date: Thursday, November 28, 2013, 10:09 PM After installing icu even more tests are failing. 43% tests passed, 53 tests failed out of 93 Total Test time (real) = 38.03 sec What files should I attach for this can you please name. I guess CMakeError.log and CMakeOutput.log are the ones you want. On Thu, Nov 28, 2013 at 6:38 PM, Shiv Shankar Dayal <shi...@gm...> wrote: I am trying to get icu detected because CMake does not detect it. It is in /us/local. On Thu, Nov 28, 2013 at 6:20 PM, Artyom Beilis <art...@ya...> wrote: To be honest hadn't tested it yet with such a latest version of Mac OS X / gcc. So it is hard to say. In any case send a build and test log Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: [Cppcms-users] two tests failiing To: cpp...@li... Date: Thursday, November 28, 2013, 2:40 PM 98% tests passed, 2 tests failed out of 88 Total Test time (real) = 253.27 sec The following tests FAILED: 3 - storage_test (ILLEGAL) 23 - http_timeouts_test_write (Failed) Errors while running CTest make: *** [test] Error 8 Mac OS X 10.9 GCC 4.9 I can post other files which one is needed? -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users -- Respect, Shiv Shankar Dayal -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-28 20:09:39
|
After installing icu even more tests are failing. 43% tests passed, 53 tests failed out of 93 Total Test time (real) = 38.03 sec What files should I attach for this can you please name. I guess CMakeError.log and CMakeOutput.log are the ones you want. On Thu, Nov 28, 2013 at 6:38 PM, Shiv Shankar Dayal < shi...@gm...> wrote: > I am trying to get icu detected because CMake does not detect it. It is in > /us/local. > > > On Thu, Nov 28, 2013 at 6:20 PM, Artyom Beilis <art...@ya...>wrote: > >> To be honest hadn't tested it yet with such a latest version of Mac OS X >> / gcc. >> >> So it is hard to say. In any case send a build and test log >> >> Artyom Beilis >> >> -------------- >> >> CppCMS - C++ Web Framework: http://cppcms.com/ >> >> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> >> -------------------------------------------- >> On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: >> >> Subject: [Cppcms-users] two tests failiing >> To: cpp...@li... >> Date: Thursday, November 28, 2013, 2:40 PM >> >> 98% tests passed, 2 >> tests failed out of 88 >> >> Total Test time (real) = 253.27 sec >> >> The following tests FAILED: >> 3 - storage_test (ILLEGAL) >> 23 - http_timeouts_test_write (Failed) >> >> Errors while running CTest >> make: *** [test] Error 8 >> >> Mac OS X 10.9 GCC 4.9 I can post other files which one >> is needed? >> >> -- >> Respect, >> Shiv Shankar Dayal >> >> >> >> -----Inline Attachment Follows----- >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your >> business. Most IT >> organizations don't have a clear picture of how application >> performance >> affects their revenue. With AppDynamics, you get 100% >> visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE >> TRIAL of AppDynamics Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >> -----Inline Attachment Follows----- >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > > > -- > Respect, > Shiv Shankar Dayal > -- Respect, Shiv Shankar Dayal |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-28 14:57:53
|
http://www.thegeekstuff.com/2010/07/logrotate-examples/ should get you started. On Thu, Nov 28, 2013 at 8:27 PM, Shiv Shankar Dayal < shi...@gm...> wrote: > You can use logrotate if you on Unix. > > > On Thu, Nov 28, 2013 at 7:59 PM, 陈抒 <csf...@gm...> wrote: > >> Hi, >> Does cppcms support write a new log file every day and just keep the >> last 7 days log files? >> My c++ TCP server is using cppcms log library now, the size of one >> single log file is usually over 600 MB. I want to split it into daily log >> file to decrease its size because I will develop a script tool to analyze >> them in the future. >> >> Dean Chen >> Best regards >> http://blog.csdn.net/csfreebird >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > -- > Respect, > Shiv Shankar Dayal > -- Respect, Shiv Shankar Dayal |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-28 14:57:17
|
You can use logrotate if you on Unix. On Thu, Nov 28, 2013 at 7:59 PM, 陈抒 <csf...@gm...> wrote: > Hi, > Does cppcms support write a new log file every day and just keep the > last 7 days log files? > My c++ TCP server is using cppcms log library now, the size of one > single log file is usually over 600 MB. I want to split it into daily log > file to decrease its size because I will develop a script tool to analyze > them in the future. > > Dean Chen > Best regards > http://blog.csdn.net/csfreebird > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- Respect, Shiv Shankar Dayal |
|
From: 陈抒 <csf...@gm...> - 2013-11-28 14:30:26
|
Hi, Does cppcms support write a new log file every day and just keep the last 7 days log files? My c++ TCP server is using cppcms log library now, the size of one single log file is usually over 600 MB. I want to split it into daily log file to decrease its size because I will develop a script tool to analyze them in the future. Dean Chen Best regards http://blog.csdn.net/csfreebird |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-28 13:08:31
|
I am trying to get icu detected because CMake does not detect it. It is in /us/local. On Thu, Nov 28, 2013 at 6:20 PM, Artyom Beilis <art...@ya...> wrote: > To be honest hadn't tested it yet with such a latest version of Mac OS X / > gcc. > > So it is hard to say. In any case send a build and test log > > Artyom Beilis > > -------------- > > CppCMS - C++ Web Framework: http://cppcms.com/ > > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > -------------------------------------------- > On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: > > Subject: [Cppcms-users] two tests failiing > To: cpp...@li... > Date: Thursday, November 28, 2013, 2:40 PM > > 98% tests passed, 2 > tests failed out of 88 > > Total Test time (real) = 253.27 sec > > The following tests FAILED: > 3 - storage_test (ILLEGAL) > 23 - http_timeouts_test_write (Failed) > > Errors while running CTest > make: *** [test] Error 8 > > Mac OS X 10.9 GCC 4.9 I can post other files which one > is needed? > > -- > Respect, > Shiv Shankar Dayal > > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > -----Inline Attachment Follows----- > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Respect, Shiv Shankar Dayal |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-28 13:01:19
|
Thanks. The contrib has some more interesting and useful code. I will read the code and one thing which I think I will extend is session storage for Couchbase database. On Thu, Nov 28, 2013 at 6:18 PM, Artyom Beilis <art...@ya...> wrote: > The CppBlog has my own captcha, > > For the recaptcha the answer is simple: > > > https://svn.code.sf.net/p/cppcms/code/framework/trunk/contrib/server_side/recaptcha/ > > It is already there under contrib section although in trunk but the code > works with stable CppCMS as well. This recaptcha code is used in production > environment. You need libcurl to compile it. > > Artyom Beilis > > -------------- > > CppCMS - C++ Web Framework: http://cppcms.com/ > > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > -------------------------------------------- > On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: > > Subject: [Cppcms-users] google recaptcha > To: cpp...@li... > Date: Thursday, November 28, 2013, 2:37 PM > > Hi, > > Since CppCMSs form widget does not have recaptcha > field how can one enable google recaptcha for something like > registration page or after certain failed login attempts. > > > I see that CppBlog has some recaptcha code which generated > recaptcha images. Is it good enough to be used in production > code or should it be improved. I mean security-wise. > > -- > > Respect, > Shiv Shankar Dayal > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > -----Inline Attachment Follows----- > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Respect, Shiv Shankar Dayal |
|
From: Artyom B. <art...@ya...> - 2013-11-28 12:50:13
|
To be honest hadn't tested it yet with such a latest version of Mac OS X / gcc. So it is hard to say. In any case send a build and test log Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: [Cppcms-users] two tests failiing To: cpp...@li... Date: Thursday, November 28, 2013, 2:40 PM 98% tests passed, 2 tests failed out of 88 Total Test time (real) = 253.27 sec The following tests FAILED: 3 - storage_test (ILLEGAL) 23 - http_timeouts_test_write (Failed) Errors while running CTest make: *** [test] Error 8 Mac OS X 10.9 GCC 4.9 I can post other files which one is needed? -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Artyom B. <art...@ya...> - 2013-11-28 12:48:49
|
The CppBlog has my own captcha, For the recaptcha the answer is simple: https://svn.code.sf.net/p/cppcms/code/framework/trunk/contrib/server_side/recaptcha/ It is already there under contrib section although in trunk but the code works with stable CppCMS as well. This recaptcha code is used in production environment. You need libcurl to compile it. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: [Cppcms-users] google recaptcha To: cpp...@li... Date: Thursday, November 28, 2013, 2:37 PM Hi, Since CppCMSs form widget does not have recaptcha field how can one enable google recaptcha for something like registration page or after certain failed login attempts. I see that CppBlog has some recaptcha code which generated recaptcha images. Is it good enough to be used in production code or should it be improved. I mean security-wise. -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-28 12:40:10
|
98% tests passed, 2 tests failed out of 88
Total Test time (real) = 253.27 sec
The following tests FAILED:
3 - storage_test (ILLEGAL)
23 - http_timeouts_test_write (Failed)
Errors while running CTest
make: *** [test] Error 8
Mac OS X 10.9 GCC 4.9 I can post other files which one is needed?
--
Respect,
Shiv Shankar Dayal
|
|
From: Shiv S. D. <shi...@gm...> - 2013-11-28 12:37:33
|
Hi, Since CppCMSs form widget does not have recaptcha field how can one enable google recaptcha for something like registration page or after certain failed login attempts. I see that CppBlog has some recaptcha code which generated recaptcha images. Is it good enough to be used in production code or should it be improved. I mean security-wise. -- Respect, Shiv Shankar Dayal |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-28 12:26:50
|
Nevermind. It is Mac OS X 10.9 I just looked into it and found that since Mac OS X filesystem does not distinguish for case sensitive name /usr/bin/cc and /usr/bin/CC were wrong. It was mixed. So I installed latest 4.9 gcc and altered PATH variable to /usr/local/bin where gcc was installed and it compiles fine. However, gcc 4.9 on Mac OS X gives a lot more warnings compared to gcc 4.7 on GNU/Linux. If you want I can send the compilation log. On Thu, Nov 28, 2013 at 5:23 PM, Artyom Beilis <art...@ya...> wrote: > More details: > > - Mac OS X Version? > - Exact compiler? > - Exact compiler version? > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > -------------------------------------------- > On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: > > Subject: [Cppcms-users] Compilation error > To: cpp...@li... > Date: Thursday, November 28, 2013, 9:05 AM > > Hi, > > I am using cppcms1.0.4 on Mac OS X and it is giving > compilation errors like following: > > /Volumes/Data/cppcms-1.0.4/src/util.cpp:44:21: error: > invalid operands to binary expression > ('std::ostream' > > (aka 'basic_ostream<char>') and > 'const char [5]') > case > '>': output << ">"; > break; > > ~~~~~~ ^ ~~~~~~ > > > Is there anything I am missing > > -- > Respect, > Shiv Shankar Dayal > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > -----Inline Attachment Follows----- > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Respect, Shiv Shankar Dayal |
|
From: Artyom B. <art...@ya...> - 2013-11-28 11:53:45
|
More details: - Mac OS X Version? - Exact compiler? - Exact compiler version? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: [Cppcms-users] Compilation error To: cpp...@li... Date: Thursday, November 28, 2013, 9:05 AM Hi, I am using cppcms1.0.4 on Mac OS X and it is giving compilation errors like following: /Volumes/Data/cppcms-1.0.4/src/util.cpp:44:21: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char [5]') case '>': output << ">"; break; ~~~~~~ ^ ~~~~~~ Is there anything I am missing -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-28 07:05:43
|
Hi,
I am using cppcms1.0.4 on Mac OS X and it is giving compilation errors like
following:
/Volumes/Data/cppcms-1.0.4/src/util.cpp:44:21: error: invalid operands to
binary expression ('std::ostream'
(aka 'basic_ostream<char>') and 'const char [5]')
case '>': output << ">"; break;
~~~~~~ ^ ~~~~~~
Is there anything I am missing
--
Respect,
Shiv Shankar Dayal
|
|
From: Ramakrishna M. <ram...@gm...> - 2013-11-26 05:21:32
|
Thank you Artyom, for quick reply on my query. I will stick with cppcms 1.0.4 for now. Ram. |
|
From: Artyom B. <art...@ya...> - 2013-11-24 10:34:15
|
The trunk - 1.1. is unstable version that is under development. There may be some issues like that. There is major rework in event loop and this test fails on some systems for various reasons, I still need to work on it, as for example on FreeBSD it fails consistently. I recommend use stable 1.0.4 version Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Sun, 11/24/13, Ramakrishna Mallireddy <ram...@gm...> wrote: Subject: [Cppcms-users] cppcms 1.1.0 Build failed test "http_timeouts_test_write" To: cpp...@li... Date: Sunday, November 24, 2013, 11:40 AM Hi Everyone, I have downloaded the latest code version "1.1.0" from svn and it build without any errors, and while running "make test" out of 97 only 1 test failed i.e "http_timeouts_test_write". Please find the test log below. " 2013-11-24 11:52:40; cppcms_http, info: GET /async/long (http_api.cpp:251) 2013-11-24 11:52:46; cppcms_http, info: Timeout on connection for URI: /async/long from 127.0.0.1 (http_api.cpp:172) 2013-11-24 11:52:46; cppcms, warning: Writing response failed:aio::: canceled (cgi_api.cpp:493) 2013-11-24 11:52:50; cppcms_http, info: GET /async/long (http_api.cpp:251) 2013-11-24 11:52:56; cppcms_http, info: Timeout on connection for URI: /async/long from 127.0.0.1 (http_api.cpp:172) 2013-11-24 11:52:56; cppcms, warning: Writing response failed:aio::: canceled (cgi_api.cpp:493) File "/home/web/cppcms/tests/http_timeouts_test.py", line 76, in <module> test_unfinished_read('GET /async/long HTTP/1.0',20,1000) File "/home/web/cppcms/tests/http_timeouts_test.py", line 58, in test_unfinished_read test(l > 0) File "/home/web/cppcms/tests/http_timeouts_test.py", line 16, in test traceback.print_stack() Write to the client timeout Tesing GET /async/long HTTP/1.0 with 0 reads SO_RCVBUF=262006 Tesing GET /async/long HTTP/1.0 with 20 reads SO_RCVBUF=262006 Error Statistics: sync_bad_count =0 async_bad_count =2 count_timeouts =2 above 15 =0 below 10 =2 eof =0 Failed <end of output> Test time = 28.11 sec ---------------------------------------------------------- Test Failed. "http_timeouts_test_write" end time: Nov 24 11:53 IST "http_timeouts_test_write" time elapsed: 00:00:28 ---------------------------------------------------------- " Does anyone have this issue earlier. My System configuration: ubuntu 12.04.3 LTS and g++ 4.7.3 What are the difference between the Released version [1.0.4] and version [1.1.0]. Before this I have compiled & run the tests of the release version [1.0.4] without any issues. Thanks Ram -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Ramakrishna M. <ram...@gm...> - 2013-11-24 09:40:34
|
Hi Everyone,
I have downloaded the latest code version "1.1.0" from svn and it build
without any errors, and while running "make test" out of 97 only 1 test
failed i.e "http_timeouts_test_write".
Please find the test log below.
"
2013-11-24 11:52:40; cppcms_http, info: GET /async/long (http_api.cpp:251)
2013-11-24 11:52:46; cppcms_http, info: Timeout on connection for URI:
/async/long from 127.0.0.1 (http_api.cpp:172)
2013-11-24 11:52:46; cppcms, warning: Writing response failed:aio:::
canceled (cgi_api.cpp:493)
2013-11-24 11:52:50; cppcms_http, info: GET /async/long (http_api.cpp:251)
2013-11-24 11:52:56; cppcms_http, info: Timeout on connection for URI:
/async/long from 127.0.0.1 (http_api.cpp:172)
2013-11-24 11:52:56; cppcms, warning: Writing response failed:aio:::
canceled (cgi_api.cpp:493)
File "/home/web/cppcms/tests/http_timeouts_test.py", line 76, in <module>
test_unfinished_read('GET /async/long HTTP/1.0',20,1000)
File "/home/web/cppcms/tests/http_timeouts_test.py", line 58, in
test_unfinished_read
test(l > 0)
File "/home/web/cppcms/tests/http_timeouts_test.py", line 16, in test
traceback.print_stack()
Write to the client timeout
Tesing GET /async/long HTTP/1.0 with 0 reads
SO_RCVBUF=262006
Tesing GET /async/long HTTP/1.0 with 20 reads
SO_RCVBUF=262006
Error
Statistics:
sync_bad_count =0
async_bad_count =2
count_timeouts =2
above 15 =0
below 10 =2
eof =0
Failed
<end of output>
Test time = 28.11 sec
----------------------------------------------------------
Test Failed.
"http_timeouts_test_write" end time: Nov 24 11:53 IST
"http_timeouts_test_write" time elapsed: 00:00:28
----------------------------------------------------------
"
Does anyone have this issue earlier.
My System configuration:
ubuntu 12.04.3 LTS and g++ 4.7.3
What are the difference between the Released version [1.0.4] and version
[1.1.0].
Before this I have compiled & run the tests of the release version [1.0.4]
without any issues.
Thanks
Ram
|
|
From: Artyom B. <art...@ya...> - 2013-11-23 10:02:32
|
Artyom Beilis > Since asynchronous applications run in main thread and > are event driven, shouldn't the word > "simultaneously" be written as > "sequentially" instead? Because asynchronous > applications do not accept and process requests > concurrently, requests must wait in line for processing. > Asynchronous applications run in main thread and thus > can never handle multiple connections simultaneously. They > handle one connection at a time. No... Simultaneously does not mean multithreaded :-) Async App can keep more than one open connection simultaneously unlike the synchronous application. like in a chat example, where the waiters_ is a set of multiple connections. Artyom |
|
From: Artyom B. <art...@ya...> - 2013-11-23 09:59:00
|
Yes, this is one of the many ways. I would suggest to have some singleton keepig shared data Artyom Having contemplated for a while, I am trying to reply my first question as follows. Please correct me if I am wrong! The solution might be as simple as passing the reference of the asynchronous application object as a parameter to the synchronous application in interest like this: cppcms::service srv(argc,argv); booster::intrusive_ptr<chat> c=new chat(srv); srv.applications_pool().mount(cppcms::applications_factory<my_hello_world>(c)); service.applications_pool().mount(c); Regards, CN On Sat, Nov 23, 2013, at 11:02 AM, CN wrote: Applications my_hello_world and chat are mounted under different application tree branches, How does my_hello_world acquire the reference of chat instance? I'ts good to know that cppcms::service::post() is not required in such case! Nevertheless, an example code demonstrating the usage of cppcms::service::post() would be greatly appreciated - just in case I will need to call it some other day! Regards, CN On Fri, Nov 22, 2013, at 10:05 PM, Artyom Beilis wrote: Just create some thread safe object that can keep the data you need (i.e. member functions that access it protected with mutexes/rw-locks). Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ On Friday, November 22, 2013 8:12 AM, CN <cn...@fa...> wrote: Hello! Imagine I have both synchronous and asynchronous applications mounted: int main(int argc,char ** argv) { try { cppcms::service srv(argc,argv); srv.applications_pool().mount(cppcms::applications_factory<my_hello_world>()); booster::intrusive_ptr<chat> c=new chat(srv); service.applications_pool().mount(c); srv.run(); } catch(std::exception const &e) { std::cerr<<e.what()<<std::endl; } } Assume that std::vector<cppcms::json::value> messages_; in http://cppcms.com/wikipp/en/page/cppcms_1x_chat_json_rpc is public. If I understand the framework correctly, asynchronous applications run in main thread. Therefore, asynchronous applications are appropriate candidates to keep cross-application data, messages_ in our example, that is to be shared by synchronous applications. I would like to know how to access messages_ kept in chat application from my_hello_world. I have read both http://cppcms.com/wikipp/en/page/cppcms_1x_event_loop and http://cppcms.com/cppcms_ref/latest/classcppcms_1_1service.html#a29410e26d78c56c3f22389db5828cd0c but still have no idea how. Helps will be greatly appreciated. Regards, CN -- http://www.fastmail.fm - Or how I learned to stop worrying and love email again ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users -- http://www.fastmail.fm - Access all of your messages and folders wherever you are ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users -- http://www.fastmail.fm - One of many happy users: http://www.fastmail.fm/help/overview_quotes.html -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: CN <cn...@fa...> - 2013-11-23 06:00:39
|
Having contemplated for a while, I am trying to reply my first question as follows. Please correct me if I am wrong! The solution might be as simple as passing the reference of the asynchronous application object as a parameter to the synchronous application in interest like this: cppcms::service srv(argc,argv); booster::intrusive_ptr<chat> c=new chat(srv); srv.applications_pool().mount(cppcms::applications_factory<my_hello_world>(c)); service.applications_pool().mount(c); Regards, CN On Sat, Nov 23, 2013, at 11:02 AM, CN wrote: Applications my_hello_world and chat are mounted under different application tree branches, How does my_hello_world acquire the reference of chat instance? I'ts good to know that cppcms::service::post() is not required in such case! Nevertheless, an example code demonstrating the usage of cppcms::service::post() would be greatly appreciated - just in case I will need to call it some other day! Regards, CN On Fri, Nov 22, 2013, at 10:05 PM, Artyom Beilis wrote: Just create some thread safe object that can keep the data you need (i.e. member functions that access it protected with mutexes/rw-locks). Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ On Friday, November 22, 2013 8:12 AM, CN <cn...@fa...> wrote: Hello! Imagine I have both synchronous and asynchronous applications mounted: int main(int argc,char ** argv) { try { cppcms::service srv(argc,argv); srv.applications_pool().mount(cppcms::applications_factory<my_hello_wor ld>()); booster::intrusive_ptr<chat> c=new chat(srv); service.applications_pool().mount(c); srv.run(); } catch(std::exception const &e) { std::cerr<<e.what()<<std::endl; } } Assume that std::vector<cppcms::json::value> messages_; in [1]http://cppcms.com/wikipp/en/page/cppcms_1x_chat_json_rpc is public. If I understand the framework correctly, asynchronous applications run in main thread. Therefore, asynchronous applications are appropriate candidates to keep cross-application data, messages_ in our example, that is to be shared by synchronous applications. I would like to know how to access messages_ kept in chat application from my_hello_world. I have read both [2]http://cppcms.com/wikipp/en/page/cppcms_1x_event_loop and [3]http://cppcms.com/cppcms_ref/latest/classcppcms_1_1service.html#a294 10e26d78c56c3f22389db5828cd0c but still have no idea how. Helps will be greatly appreciated. Regards, CN -- [4]http://www.fastmail.fm - Or how I learned to stop worrying and love email again ----------------------------------------------------------------------- ------- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. [5]http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg .clktrk _______________________________________________ Cppcms-users mailing list [6]Cpp...@li... [7]https://lists.sourceforge.net/lists/listinfo/cppcms-users ----------------------------------------------------------------------- ------- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. [8]http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg .clktrk _______________________________________________ Cppcms-users mailing list [9]Cpp...@li... [10]https://lists.sourceforge.net/lists/listinfo/cppcms-users -- http://www.fastmail.fm - Access all of your messages and folders wherever you are ----------------------------------------------------------------------- ------- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. [11]http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ost g.clktrk _______________________________________________ Cppcms-users mailing list [12]Cpp...@li... [13]https://lists.sourceforge.net/lists/listinfo/cppcms-users References 1. http://cppcms.com/wikipp/en/page/cppcms_1x_chat_json_rpc 2. http://cppcms.com/wikipp/en/page/cppcms_1x_event_loop 3. http://cppcms.com/cppcms_ref/latest/classcppcms_1_1service.html#a29410e26d78c56c3f22389db5828cd0c 4. http://www.fastmail.fm/ 5. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk 6. mailto:Cpp...@li... 7. https://lists.sourceforge.net/lists/listinfo/cppcms-users 8. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk 9. mailto:Cpp...@li... 10. https://lists.sourceforge.net/lists/listinfo/cppcms-users 11. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk 12. mailto:Cpp...@li... 13. https://lists.sourceforge.net/lists/listinfo/cppcms-users -- http://www.fastmail.fm - One of many happy users: http://www.fastmail.fm/help/overview_quotes.html |