搞了台阿里云做内网打洞测试,宏开关ALITEST用来内外网测试转换
#define SERVERIP “xx.xx.xx.xx” 是外网测试机的外网IP
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sys/ioctl.h>
#include <net/if.h>
namespace ShaCoin
{
#define ALITEST 0
#if ALITEST
#define SERVERIP "xxx.xxx.xxx.xxx"
#define LOCALPORT 10000
#else //1</