summaryrefslogtreecommitdiff
path: root/src/include/globals.h
blob: dd63b5fb9caa557cc6decac836353735a67fd896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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