Web Server in C

This is a discussion on Web Server in C within the C++ Programming forums, part of the General Programming Boards category; I am fairly new to programming and C language. i would like to know if anyone could give me a ...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    2

    Lightbulb Web Server in C

    I am fairly new to programming and C language. i would like to know if anyone could give me a simple sample web server written in C for my use. please explain the lines of code if you can as well.

    it is a big help
    Thank you

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Which ones on the Web have you looked at so far?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    2

    NO

    i have no knowledge on this. pls give me a sample program of a web server in C

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by rukshilag View Post
    i have no knowledge on this. pls give me a sample program of a web server in C
    Why - there are plenty of such code available on the web, so why should we regurgitate what is available already.
    Let me google that for you

    Ok, so maybe not with comments explaining every single line - nor should that be necessary, as either you do have an understanding of C and don't need trivial comments, or you do not have sufficient understanding to deal with a web-server. Just like you need to at least know a little bit about mechanics to repair the engine of a car - do you think the manual for repairing a car says "turn screw 5 counterclockwise until it comes out", or "remove screw 5"?

    Network programming is not trivial, you need to understand some common C concepts first.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can i force connecting to local web server via internet network ?
    By umen242 in forum Networking/Device Communication
    Replies: 5
    Last Post: 04-29-2008, 09:21 AM
  2. Server Architecture
    By coder8137 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-29-2008, 10:21 PM
  3. SWEBS Web Server
    By nickname_changed in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 09-22-2003, 02:46 AM
  4. Web Server in Router Network...
    By Aidman in forum Tech Board
    Replies: 15
    Last Post: 01-17-2003, 09:24 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21