Skip to content

kelani34/simple-C-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Simple C server

Description

This simple code creates a socket, binds it to port 8080, listens for incoming connections, accepts the first connection, reads data from the client, and sends a response back to the client.🤭

Usage

Compile the program by running the following command in the terminal:

gcc server.c -o server

Run the program by running the following command in the terminal:

./server

Open a web browser and navigate to http://localhost:8080. You should see the message "Hello world!" displayed in the browser.

License

MIT

Author

GitHub followers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages