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 
21 #ifndef NET_SOCK_CONFIG_H
22 #define NET_SOCK_CONFIG_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
33 #ifndef CONFIG_SOCK_SCHEME_MAXLEN
34 #define CONFIG_SOCK_SCHEME_MAXLEN (16U)
35 #endif
36 
40 #ifndef CONFIG_SOCK_HOSTPORT_MAXLEN
41 #define CONFIG_SOCK_HOSTPORT_MAXLEN (64U)
42 #endif
43 
47 #ifndef CONFIG_SOCK_URLPATH_MAXLEN
48 #define CONFIG_SOCK_URLPATH_MAXLEN (64U)
49 #endif
50 
54 #ifndef CONFIG_SOCK_DTLS_TIMEOUT_MS
55 #define CONFIG_SOCK_DTLS_TIMEOUT_MS (1000U)
56 #endif
57 
61 #ifndef CONFIG_SOCK_DTLS_RETRIES
62 #define CONFIG_SOCK_DTLS_RETRIES (2)
63 #endif
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif /* NET_SOCK_CONFIG_H */