Skip to content

Instantly share code, notes, and snippets.

View alurm's full-sized avatar

Alan Urmancheev alurm

View GitHub Profile
#include <stdio.h>
#include <sys/socket.h>
#include <netdb.h>
#include <fcntl.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
// For functions returning -1 and setting errno.
#define try(function, ...) ({ \