Skip to content

Instantly share code, notes, and snippets.

View eXeC64's full-sized avatar

Harry Jeffery eXeC64

View GitHub Profile
@eXeC64
eXeC64 / main.c
Last active November 3, 2022 13:35
Simple IPv4 TCP server in C
#include <stdio.h>
/* atoi() */
#include <stdlib.h>
/* close() */
#include <unistd.h>
/* sockaddr_in */
#include <arpa/inet.h>
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Capslock::Esc