2020-12-05 19:26:32 +08:00
|
|
|
#pragma once
|
|
|
|
|
2021-03-13 20:34:26 +08:00
|
|
|
#ifndef MG_ENABLE_SOCKET
|
2020-12-05 19:26:32 +08:00
|
|
|
#define MG_ENABLE_SOCKET 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MG_ENABLE_MBEDTLS
|
|
|
|
#define MG_ENABLE_MBEDTLS 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MG_ENABLE_OPENSSL
|
|
|
|
#define MG_ENABLE_OPENSSL 0
|
|
|
|
#endif
|
|
|
|
|
2021-01-03 01:57:51 +08:00
|
|
|
#ifndef MG_ENABLE_SSI
|
2021-07-29 21:21:20 +08:00
|
|
|
#define MG_ENABLE_SSI 1
|
2021-01-03 01:57:51 +08:00
|
|
|
#endif
|
|
|
|
|
2020-12-05 19:26:32 +08:00
|
|
|
#ifndef MG_ENABLE_IPV6
|
|
|
|
#define MG_ENABLE_IPV6 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MG_ENABLE_LOG
|
|
|
|
#define MG_ENABLE_LOG 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MG_ENABLE_MD5
|
|
|
|
#define MG_ENABLE_MD5 0
|
|
|
|
#endif
|
|
|
|
|
2021-03-13 20:34:26 +08:00
|
|
|
// Set MG_ENABLE_WINSOCK=0 for Win32 builds with external IP stack (like LWIP)
|
|
|
|
#ifndef MG_ENABLE_WINSOCK
|
|
|
|
#define MG_ENABLE_WINSOCK 1
|
|
|
|
#endif
|
|
|
|
|
2021-07-29 21:21:20 +08:00
|
|
|
#ifndef MG_ENABLE_DIRLIST
|
|
|
|
#define MG_ENABLE_DIRLIST 0
|
2020-12-05 19:26:32 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MG_ENABLE_SOCKETPAIR
|
|
|
|
#define MG_ENABLE_SOCKETPAIR 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Granularity of the send/recv IO buffer growth
|
|
|
|
#ifndef MG_IO_SIZE
|
2021-07-29 21:21:20 +08:00
|
|
|
#define MG_IO_SIZE 2048
|
2020-12-05 19:26:32 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// Maximum size of the recv IO buffer
|
|
|
|
#ifndef MG_MAX_RECV_BUF_SIZE
|
|
|
|
#define MG_MAX_RECV_BUF_SIZE (3 * 1024 * 1024)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MG_MAX_HTTP_HEADERS
|
|
|
|
#define MG_MAX_HTTP_HEADERS 40
|
|
|
|
#endif
|
2021-02-03 10:13:05 +08:00
|
|
|
|
|
|
|
#ifndef MG_PATH_MAX
|
|
|
|
#define MG_PATH_MAX PATH_MAX
|
|
|
|
#endif
|