summaryrefslogtreecommitdiff
path: root/src/include/globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/globals.h')
-rw-r--r--src/include/globals.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/globals.h b/src/include/globals.h
new file mode 100644
index 0000000..dd63b5f
--- /dev/null
+++ b/src/include/globals.h
@@ -0,0 +1,25 @@
+/** --------------------------------------------------------------------
+ * @file globals.h
+ * @brief Global constants.
+ * @author Andreas Aardal Hanssen, Erwin Hoffmann
+ * @date 2002-2005, 2023
+ * ----------------------------------------------------------------- **/
+#ifndef GLOBAL_H_INCLUDED
+#define GLOBAL_H_INCLUDED
+
+#define BINC_VERSION "2.0.14"
+#define IMAP_VERSION "IMAP4rev1"
+#define BINC_CACHE "BINC-CACHE-1.0"
+#define IMAP_PORT "143"
+#define IMAPS_PORT "993"
+
+namespace Binc {
+ static const int IDLE_TIMEOUT = 30*60;
+ static const int AUTH_TIMEOUT = 60;
+ static const int AUTH_PENALTY = 5;
+ static const int TRANSFER_TIMEOUT = 20*60;
+ static const int TRANSFER_BUFFER_SIZE = 1024;
+ static const int INPUT_BUFFER_LIMIT = 8192;
+
+};
+#endif