/* $Id: $ */ /* vim: shiftwidth=4 tabstop=4 noexpandtab * MiniUPnP project * (c) 2016 Thomas Bernard * website : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ #include #include #include #include #include #include #include #include #include "codelength.h" #include "printresponse.h" static volatile sig_atomic_t quitting = 0; static void sighandler(int sig) { (void)sig; quitting = 1; } int main(int argc, char * * argv) { int i; int s; struct sockaddr_un addr; const char * sockpath = "/var/run/minissdpd.sock"; unsigned char buffer[4096]; ssize_t n; const char command5[] = { 0x05, 0x00 }; struct sigaction sa; for(i=0; i