C++ Web Server - Getting Started

Posted on 2007-08-08
Last Modified: 2012-03-15
I would like to implement a web server written entirely in C++.  I am told that there are alot of hosting services that use C++ technology.  I need the following info:

(1) the most current, robust, stable technologies that will help me implement such a server
(2)  some examples of hosting services that use C++ technology so I can vailidate (1) with the assumption that there are more C++ hosting services than say Java or .NET

In other words, I need someone to help get me started.
Question by:lcor
    LVL 53

    Accepted Solution

    The vast majority of websites run on the Apache web server :


    It is open-source, free, and runs on UNIX/Linux as well as Windows systems. And it is written in C. How's that for a reference :)
    LVL 86

    Expert Comment

    If you are trying to create a web server in C++, you are reinventing the wheel (unless you want to do that for educational purposes. What you need is

    - a good understanding of TCP/IP:

    - knowledge of the HTTP protocol:

    - a multithreaded model to serve more than one request at a time:

    To start out, you might want to take a look at some OSS web servers, e.g.
    LVL 22

    Expert Comment

    If you want to write a server from scratch, it's EASY to do a very basic server, less than 30 lines of code.  

    It's very HARD to write a good, reliable, fast, flexible, standards-conforming and de-facto conforming server.  Like at least 9 months of very heavy coding, and debugging, and testing.

    On the other hand you could just grab one of the many existing, well-tested servers out there.  Apache would be a good choice.


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now