Commit 57733476 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Set NMXP_SLEEPMAX to 30 seconds and removed a static variable

git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@1401 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 1609320d
......@@ -19,7 +19,7 @@
#include "nmxp_log.h"
/*! Maximum time between connection attempts (seconds). */
#define NMXP_SLEEPMAX 60
#define NMXP_SLEEPMAX 30
/*! Return message for succes on socket. */
#define NMXP_SOCKET_OK 0
......
......@@ -40,8 +40,7 @@
int nmxp_openSocket(char *hostname, int portNum, int (*func_cond)(void))
{
/*TODO stefano avoid static*/
static int sleepTime = 1;
int sleepTime = 1;
int isock = -1;
struct hostent *hostinfo = NULL;
struct sockaddr_in psServAddr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment