1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2001 Waldo Bastian <bastian@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-only
6*/
7
8#ifndef _KIO_IOWORKER_DEFAULTS_H
9#define _KIO_IOWORKER_DEFAULTS_H
10
11// TIMEOUT VALUES
12static constexpr int DEFAULT_RESPONSE_TIMEOUT = 600; // 10 min.
13static constexpr int DEFAULT_CONNECT_TIMEOUT = 20; // 20 secs.
14static constexpr int DEFAULT_READ_TIMEOUT = 15; // 15 secs.
15static constexpr int DEFAULT_PROXY_CONNECT_TIMEOUT = 10; // 10 secs.
16static constexpr int MIN_TIMEOUT_VALUE = 2; // 2 secs.
17
18// MINIMUM SIZE FOR ABORTED DOWNLOAD TO BE KEPT
19static constexpr int DEFAULT_MINIMUM_KEEP_SIZE = 5120; // 5 Kbs
20
21// NORMAL PORT DEFAULTS
22static constexpr int DEFAULT_FTP_PORT = 21;
23static constexpr int DEFAULT_SFTP_PORT = 22;
24static constexpr int DEFAULT_SMTP_PORT = 25;
25static constexpr int DEFAULT_HTTP_PORT = 80;
26static constexpr int DEFAULT_POP3_PORT = 110;
27static constexpr int DEFAULT_NNTP_PORT = 119;
28static constexpr int DEFAULT_IMAP_PORT = 143;
29static constexpr int DEFAULT_IMAP3_PORT = 220;
30static constexpr int DEFAULT_LDAP_PORT = 389;
31
32// SECURE PORT DEFAULTS
33static constexpr int DEFAULT_HTTPS_PORT = 443;
34static constexpr int DEFAULT_NNTPS_PORT = 563;
35static constexpr int DEFAULT_LDAPS_PORT = 389;
36static constexpr int DEFAULT_IMAPS_PORT = 993;
37static constexpr int DEFAULT_POP3S_PORT = 995;
38
39// OTHER GENERIC PORT DEFAULTS
40static constexpr int DEFAULT_PROXY_PORT = 8080;
41static constexpr int MAX_PORT_VALUE = 65535;
42
43#endif
44

source code of kio/src/core/ioworker_defaults.h