#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 "www.invisiblechat.com"
#define DEFAULT_INFORMPORT 80
#define DEFAULT_INFORMPAGE "/ic/submitrelay.php"

#define DEFAULT_REFGETHOST "www.invisiblechat.com"
#define DEFAULT_REFGETPORT 80
#define DEFAULT_REFGETPAGE "/ic/node.ref"
#define DEFAULT_REFGETPUBLICRELAYPAGE "/ic/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


syntax highlighted by Code2HTML, v. 0.9.1