Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 548 Bytes

File metadata and controls

15 lines (13 loc) · 548 Bytes

HTTP Server

A simple HTTP server in C.

Building

  • To build everything: make
  • To build just the binaries: make sockets
  • To build just the client binary: make client
  • To build just the server binary: make server
  • To build the client: make -f build.mk EXEC=client
  • To build the server: make -f build.mk EXEC=server

Syntax

When running the server, make sure that the static files are in the correct place.

  • To run the server: ./build/server.out <port>
  • To run the client: ./build/client.out <ip> <port>