It's quite easy to catch unix signals in Qt applications. you may like to ignore or accept them.
#include <QCoreApplication>
#include <signal.h>
#include <unistd.h>
consumer_key = 'your-consumer-key' | |
consumer_secret = 'your-consumer-secret' | |
access_token = 'your-access-token' | |
access_secret = 'your-access-secret' |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <stdexcept> | |
#include <type_traits> | |
// The following is evil template "black magic". Only because we write it instead | |
// of the C++ standards committee. This first section is effectively a C++11 |
// HTTP forward proxy server that can also proxy HTTPS requests | |
// using the CONNECT method | |
// requires https://github.com/nodejitsu/node-http-proxy | |
var httpProxy = require('http-proxy'); | |
var url = require('url'); | |
var net = require('net'); | |
var http = require('http'); |