This is a simple example of a TCP server in C using the Winsock library on Windows.
- Accepts client connections on a specific port
- Receives messages from clients and prints them
- Sends a fixed "Hello, World!" response message to clients
- Clone this repository:
git clone https://github.com/Dheovani/TCPSocket.git
- Compile the source code:
- Open the command prompt
- Navigate to the project directory
- Run the compilation command, for example:
gcc main.c -o socket.exe -lws2_32
- Run the server
- Connect to the server using a TCP client, such as your internet browser:
This project is licensed under the MIT License.