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; […]