My favorites | Sign in
Project Home Wiki Source
Project Information
Members
Featured
Wiki pages
Links

doeplus, a library :)

2011-01-30

I just started on a doeplus::webapp API. The initial part is a simple async webserver. I will add a MVC-implementation later. The server-part works like this:

int new_connection(doeplus::webapp::connection::ptr connection){
	std::string content("Send this to the browser 200 times. ");
	for(int i(0);i<200;++i){
		connection->send_response(content,false);
	}
	connection->send_response(" Finished",true);
	return 0;
}

int main(int argc, char *argv[]) {
	boost::asio::io_service io_service;
	doeplus::webapp::http_server myserver(io_service,"127.0.0.1",9010);
	myserver.connection_callback()	= &new_connection;
	io_service.run();
	return 0;
}

2010-08-29

First up is the doeplus::stringmap<> that is a specialized string container designed to be a drop in replacement for a std::map<std::string,>

It all started with this blog post I wrote http://blog.onnerby.se/2010/08/benchmarking-associative-array.html

Powered by Google Project Hosting