config.h
1 /*
2  * Copyright (C) 2017 Kaspar Schleiser <kaspar@schleiser.de>
3  * 2018 Freie Universität Berlin
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
10 #pragma once
11 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
32 #ifndef CONFIG_SOCK_SCHEME_MAXLEN
33 #define CONFIG_SOCK_SCHEME_MAXLEN (16U)
34 #endif
35 
39 #ifndef CONFIG_SOCK_HOSTPORT_MAXLEN
40 #define CONFIG_SOCK_HOSTPORT_MAXLEN (64U)
41 #endif
42 
46 #ifndef CONFIG_SOCK_URLPATH_MAXLEN
47 #define CONFIG_SOCK_URLPATH_MAXLEN (64U)
48 #endif
49 
53 #ifndef CONFIG_SOCK_DTLS_TIMEOUT_MS
54 #define CONFIG_SOCK_DTLS_TIMEOUT_MS (1000U)
55 #endif
56 
60 #ifndef CONFIG_SOCK_DTLS_RETRIES
61 #define CONFIG_SOCK_DTLS_RETRIES (2)
62 #endif
63 
64 #ifdef __cplusplus
65 }
66 #endif
67