mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-07 04:34:57 +08:00
920e8d9145
PUBLISHED_FROM=b5b12cdf4273f21dbcdac9bfb6a06063152914c9
747 B
747 B
title |
---|
Tunables |
MG_MALLOC
,MG_CALLOC
,MG_REALLOC
,MG_FREE
allow you to a use custom memory allocator, e.g.-DMG_MALLOC=my_malloc
MG_USE_READ_WRITE
when set replaces calls torecv
withread
andsend
withwrite
, thus enabling to add any kind of file descriptor (files, serial devices) to an event manager.MG_SSL_CRYPTO_MODERN
,MG_SSL_CRYPTO_OLD
- choose either "Modern" or "Old" ciphers instead of the default "Intermediate" setting. See this article for details.MG_USER_FILE_FUNCTIONS
allow you to use custom file operation, by defining you ownmg_stat
,mg_fopen
,mg_open
,mg_fread
andmg_fwrite
functions