#include #include #include #include #define VSDM_DEBUG 1 #include "vsdm.hpp" int main(int argc,char **argv) { if (argc < 4) { printf("Usage: vsdm-test [//]\n"); return 0; } uint64_t id = (uint64_t)strtoull(argv[1],(char **)0,10); uint64_t node = (uint64_t)strtoull(argv[2],(char **)0,10); int port = (int)strtol(argv[3],(char **)0,10); struct sockaddr_in sa; memset(&sa,0,sizeof(sa)); sa.sin_family = AF_INET; sa.sin_port = htons((uint16_t)port); vsdm m(id,node,false); m.listen((const struct sockaddr *)&sa); for(int i=4;i