config.h
1 /*
2  * SPDX-FileCopyrightText: 2017 Kaspar Schleiser <kaspar@schleiser.de>
3  * SPDX-FileCopyrightText: 2018 Freie Universität Berlin
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
29 #ifndef CONFIG_SOCK_SCHEME_MAXLEN
30 #define CONFIG_SOCK_SCHEME_MAXLEN (16U)
31 #endif
32 
36 #ifndef CONFIG_SOCK_HOSTPORT_MAXLEN
37 #define CONFIG_SOCK_HOSTPORT_MAXLEN (64U)
38 #endif
39 
43 #ifndef CONFIG_SOCK_URLPATH_MAXLEN
44 #define CONFIG_SOCK_URLPATH_MAXLEN (64U)
45 #endif
46 
50 #ifndef CONFIG_SOCK_DTLS_TIMEOUT_MS
51 #define CONFIG_SOCK_DTLS_TIMEOUT_MS (1000U)
52 #endif
53 
57 #ifndef CONFIG_SOCK_DTLS_RETRIES
58 #define CONFIG_SOCK_DTLS_RETRIES (2)
59 #endif
60 
61 #ifdef __cplusplus
62 }
63 #endif
64