Skip to content

Instantly share code, notes, and snippets.

View annmuor's full-sized avatar
🏠
Working from home

Ivan Agarkov annmuor

🏠
Working from home
  • Wargaming.net
  • Nicosia, Cyprus
  • X @annmuor
View GitHub Profile
#include <stdio.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/udp.h>
#include <string.h>
#include <stdlib.h>
#define READLINE_CALLBACKS
// This file was cut from original server code
// Use this for eudcational purporses
// (C) and so on
#define _FLAG_FIN 0x01
#define _FLAG_SYN 0x02
#define _FLAG_RST 0x04
#define _FLAG_PSH 0x08
#define _FLAG_ACK 0x10
#define _FLAG_URG 0x20