Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 736 Bytes

Readme.md

File metadata and controls

29 lines (17 loc) · 736 Bytes

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