File indexing completed on 2024-04-21 03:55:03

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2001 Waldo Bastian <bastian@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-only
0006 */
0007 
0008 #ifndef _KIO_IOWORKER_DEFAULTS_H
0009 #define _KIO_IOWORKER_DEFAULTS_H
0010 
0011 // TIMEOUT VALUES
0012 static constexpr int DEFAULT_RESPONSE_TIMEOUT = 600; // 10 min.
0013 static constexpr int DEFAULT_CONNECT_TIMEOUT = 20; // 20 secs.
0014 static constexpr int DEFAULT_READ_TIMEOUT = 15; // 15 secs.
0015 static constexpr int DEFAULT_PROXY_CONNECT_TIMEOUT = 10; // 10 secs.
0016 static constexpr int MIN_TIMEOUT_VALUE = 2; //  2 secs.
0017 
0018 // MINIMUM SIZE FOR ABORTED DOWNLOAD TO BE KEPT
0019 static constexpr int DEFAULT_MINIMUM_KEEP_SIZE = 5120; //  5 Kbs
0020 
0021 // NORMAL PORT DEFAULTS
0022 static constexpr int DEFAULT_FTP_PORT = 21;
0023 static constexpr int DEFAULT_SFTP_PORT = 22;
0024 static constexpr int DEFAULT_SMTP_PORT = 25;
0025 static constexpr int DEFAULT_HTTP_PORT = 80;
0026 static constexpr int DEFAULT_POP3_PORT = 110;
0027 static constexpr int DEFAULT_NNTP_PORT = 119;
0028 static constexpr int DEFAULT_IMAP_PORT = 143;
0029 static constexpr int DEFAULT_IMAP3_PORT = 220;
0030 static constexpr int DEFAULT_LDAP_PORT = 389;
0031 
0032 // SECURE PORT DEFAULTS
0033 static constexpr int DEFAULT_HTTPS_PORT = 443;
0034 static constexpr int DEFAULT_NNTPS_PORT = 563;
0035 static constexpr int DEFAULT_LDAPS_PORT = 389;
0036 static constexpr int DEFAULT_IMAPS_PORT = 993;
0037 static constexpr int DEFAULT_POP3S_PORT = 995;
0038 
0039 // OTHER GENERIC PORT DEFAULTS
0040 static constexpr int DEFAULT_PROXY_PORT = 8080;
0041 static constexpr int MAX_PORT_VALUE = 65535;
0042 
0043 #endif