Git Product home page Git Product logo

simple-server's Introduction

File in this distribution:
	README.txt		for imformation
	fork-web-server.c	source file
	makefile		makefile

1. How to compile and run the program.
The complier is gcc and the dialect is gnu89. To compile the source code and build the program, just use "make" command in the source code's directory. Then the program named "forking-web-server" will be created in the directoty.

To run: Type "./forking-web-server [filename] [port number]" in the directory to run the program. E.g. "./forking-web-server hello_world.html 8000" will run the program to serve on the port of 8000, with serving file of "hello_world.html". Before running the program, make sure that the extension of the file is listed in "mime-types.tsv".

2. Functions supported
The program works as a server that can serve multiple clients simultaneously. It provides functions below:
 * Serve file to the web browser(supporting HTTP).
 * Handle multiple connections at the same time.
 * Serve file with the filename specified as the first command line argument.
 * Serve on the port with the port number specified as the second command line argument.
 * Check whether the extension of the file listed in "mime-types.tsv". 
 * The number of the types supported is the same as the number of types listed in "mime-types.tsv".

3. Functions not supported
 * Do not set the limitation for maximum connections.
 * When browser downloads some particular kinds of file(media files), the file is not named appropriately.

4. Known limitations
 * No limitations as of the date when this document finished.


simple-server's People

Contributors

ethanyoung avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.