https://github.com/sunpodder/http-server.asm
https://github.com/sunpodder/http-server.asm
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sunpodder/http-server.asm
- Owner: SunPodder
- License: mit
- Created: 2024-02-15T06:43:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-15T08:29:29.000Z (over 2 years ago)
- Last Synced: 2024-02-15T09:29:34.765Z (over 2 years ago)
- Language: Assembly
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple HTTP Server in x86-64 Linux Assembly
It uses linux system calls so you will need a linux machine to compile and run this.
Install nasm with your system's package manager
```bash
sudo apt install nasm
```
Compile and run with
```bash
make
./main
```
For debugging I found `strace` to be very useful
```bash
strace ./main
```
resources:
- https://filippo.io/linux-syscall-table/
- https://stackoverflow.com/q/74887725
- Linux Man Pages
- System Header files for the values of various constants
- See RFC and MDN docs for HTTP request and response formats
See also:
- https://asmtutor.com/