Thread: Basic httpd server

  1. #1
    Unregistered
    Guest

    Arrow Basic httpd server

    I'm looking for some source code for a (very) basic httpd server & a socket tutiorial.

    If anybody has source code for a basic server that can show a basic index.html/index.htm file I would bhe very grateful.

    Many Thanx

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >I'm looking<snip>
    You're obviously not looking very hard. Get a book, search the web, and at least try to do a little research before running for help. Here is a good start:

    www.google.com
    www.planet-source-code.com
    www.cpp-home.com/

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    39
    Also, the ultimate newbie socket tutorial:

    http://www.ecst.csuchico.edu/~beej/guide/net/html/
    <Signature
    name="Ruchikar"
    quote="discussions are forgotten, only code remains"/>

  4. #4
    Unregistered
    Guest
    ok, most of the tutorials I read on sockets are very hard for me to understand, I am still reading through them trying to learn. I want to make a 'very' basic web server or a server I can telnet to & write to a text file on the server. So I just want a few begginer tutorials on c sockets, please post a few, many thanx.

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    The best guide I've seen has already been posted:
    http://www.ecst.csuchico.edu/~beej/guide/net/html/

    It even includes sample source for a client and server.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  6. #6
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >most of the tutorials I read on sockets are very hard for me to understand
    So read them again until you do. If sockets were simple enough for everyone to understand after merely reading an on-line tutorial then they would be pretty much useless.

    >So I just want a few begginer tutorials on c sockets
    You've been given that. Though it seems to me you may need a beginner tutorial on C so that you can work your way up to sockets if your problem is not understanding the material.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 03-01-2008, 02:44 AM
  2. Where's the EPIPE signal?
    By marc.andrysco in forum Networking/Device Communication
    Replies: 0
    Last Post: 12-23-2006, 08:04 PM
  3. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  4. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM