C TCP Server in Windows – Thread per connection2 min read

A simple TCP server in C (windows). It works in a “thread per connection” way. Note- I don’t know what I am doing. #include <winsock.h> #include <stdio.h> #include <string.h> #include <sys/types.h> #define PORT 50001 //Function that threads run static DWORD __stdcall func(int s); int main() { //Dont ask just put it in there WSADATA wsaData; […]

Learning something new : RUST lang PART 23 min read

The second part is creating a guessing game in rust. From the book this is what is going to happen. We’ll implement a classic beginner programming problem: a guessing game. Here’s how it works: the program will generate a random integer between 1 and 100. It will then prompt the player to enter a guess. […]