int nullAuthAllowed; //!< '1' if we permit NULL authentication, '0' otherwise
static struct listen_sock *listen_socks; //!< sockets on which we listen
char loadfile[MAX_LINE + 1]; //!< Name of the file from which we have to load the configuration
- int passivemode = 1; //!< '1' if we want to run in passive mode as well
- struct addrinfo mainhints; //!< temporary struct to keep settings needed to open the new socket
- char address[MAX_LINE + 1]; //!< keeps the network address (either numeric or literal) to bind to
- char port[MAX_LINE + 1]; //!< keeps the network port to bind to
+ static int passivemode = 1; //!< '1' if we want to run in passive mode as well
+ static struct addrinfo mainhints; //!< temporary struct to keep settings needed to open the new socket
+ static char address[MAX_LINE + 1]; //!< keeps the network address (either numeric or literal) to bind to
+ static char port[MAX_LINE + 1]; //!< keeps the network port to bind to
#ifdef _WIN32
-static HANDLE shutdown_event; //!< event to signal to shut down the main loop
-#else
+static HANDLE state_change_event; //!< event to signal that a state change should take place
+#endif
static volatile sig_atomic_t shutdown_server; //!< '1' if the server is to shut down
static volatile sig_atomic_t reread_config; //!< '1' if the server is to re-read its configuration
-#endif
extern char *optarg; // for getopt()