#ifndef MISC_GLOBAL_H
#define MISC_GLOBAL_H

#include "compat.h"

extern int localPort;
extern char *hostname;
extern int ignoreself;
extern int makeKeys;
extern int doconfig;
extern int showversion;

#define VERSIONTEXT "IIP version 1.1.0"

extern char *networkKey;
extern char *networkSecretKey;
extern char *networkProtocol;

extern int publicrelaynode;
extern int autogetnoderefs;

extern volatile int reloadsettings;
extern int dokill;

extern int quiet;

extern char *winhelpfile;
extern char *winhelpfile2;

#define DEFAULT_INFORMHOST "inform.invisiblenet.net"
#define DEFAULT_INFORMPORT 80
#define DEFAULT_INFORMPAGE "/iiprelays/submitrelay.php"

#define DEFAULT_REFGETHOST "www.invisiblenet.net"
#define DEFAULT_REFGETPORT 80
#define DEFAULT_REFGETPAGE "/iip/crypto/node.ref"
#define DEFAULT_REFGETPUBLICRELAYPAGE "/iip/crypto/node.ref"

extern char *informhost;
extern int informport;
extern char *informpage;

extern char *refgethost;
extern int refgetport;
extern char *refgetpage;
extern char *refgetpublicrelaypage;

extern char *pathprefix;
#ifdef _UNIX_
#define DEFAULT_PATHPREFIX "~/.iip/"
#else
#define DEFAULT_PATHPREFIX ".\\"
#endif


extern int nextdhdelay;
#define NEXTDHDELAY 2

extern int retries;
#define DEFAULT_RETRIES 0

#endif //MISC_GLOBAL_H
