Skip to content

Instantly share code, notes, and snippets.

View jyaif's full-sized avatar
☮️

Jean-François Geyelin jyaif

☮️
View GitHub Profile
@jyaif
jyaif / stun.cpp
Last active April 9, 2024 09:07
A simple stun client in C++ (posix only)
// How to compile:
// clang++ -std=c++11 stun.cpp
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <sys/socket.h>
#include <unistd.h>
#include <array>
#include <cstring>
@jyaif
jyaif / main.cpp
Created September 24, 2017 18:00
Kiwi usage example in C++
// I couldn't find any example showing the how to use the C++ constraint
// solver library 'Kiwi' ( https://github.com/nucleic/kiwi ).
//
// Hopefully this Gist will save someone a couple of minutes.
//
// To build:
// clang++ main.cpp
#include <iostream>