This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |