Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Simple C++ HTTP+XML server

Reply
Thread Tools

Simple C++ HTTP+XML server

 
 
Full Decent
Guest
Posts: n/a
 
      06-21-2005
I want to write a simple C++ backend to a website so I can use
XMLHTTPRequest. The server is stateful and cannot be cgi. Is there a
simple C++ framework to handle the HTTP communications? I had looked
into XML-RPC but I'm not sure if that's the way to go.

 
Reply With Quote
 
 
 
 
Nick Kew
Guest
Posts: n/a
 
      06-21-2005
Full Decent wrote:
> I want to write a simple C++ backend to a website so I can use
> XMLHTTPRequest. The server is stateful and cannot be cgi. Is there a
> simple C++ framework to handle the HTTP communications?


Why not use Apache and develop your backend as a module?
Save yourself reinventing the wheel of an HTTP server.

--
Nick Kew
 
Reply With Quote
 
 
 
 
Full Decent
Guest
Posts: n/a
 
      06-21-2005
The issue is that the backend takes a long time to load and therefore
cannot be loaded each call. Is this possible with an Apache module?

 
Reply With Quote
 
Malcolm Dew-Jones
Guest
Posts: n/a
 
      06-22-2005
Full Decent () wrote:
: The issue is that the backend takes a long time to load and therefore
: cannot be loaded each call. Is this possible with an Apache module?

Without being an expert of writing Apache modules, I can only say "sure, I
think that's how they all work".

mod_perl would be an example. I don't use it much, but I understand that
pre-loading perl components, and also sharing items from one request to
the next by remaining in memory, are exactly the sort of reason people use
it.


--

This space not for rent.
 
Reply With Quote
 
Nick Kew
Guest
Posts: n/a
 
      06-22-2005
Full Decent wrote:
> The issue is that the backend takes a long time to load and therefore
> cannot be loaded each call. Is this possible with an Apache module?


Of course! That's bog-standard in the architecture commonly known as
LAMP. Since Apache 2.0 (the stable release since 2002) you can do a
good deal better than just that. There's a (sadly outdated) article
at http://www.apachetutor.org/dev/reslist explaining how.

For better, up-to-date info, see Chapter 7 of my forthcoming book,
and come to our tutorial at ApacheCon ( http://www.apachecon.com/ ).

--
Nick Kew
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simplest way to create simple standalone wsgi server without importwsgi_lib.server Gelonida Python 4 02-01-2011 11:30 PM
Server to server = Server client to server? - Java 2 07-29-2005 10:46 PM
Re: Simple Simple question!!! ashelley@inlandkwpp.com ASP .Net 0 06-25-2004 04:18 PM
runat="server"....a simple html textbox or a webform server textbox...that is the question. Hazzard ASP .Net 2 07-23-2003 07:32 AM
Re: runat="server"....a simple html textbox or a webform server textbox...that is the question. Natty Gur ASP .Net 0 07-22-2003 03:57 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57