mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
Initial mqtt5 support
This commit is contained in:
1 parent
d65ce3b596
commit
ba08140197
9 files changed
+103
-74
No files matched your search
@@ -15,7 +15,7 @@ static void mg_putchar_iobuf(char ch, void *param) {
|
||||
if (io->len < io->size) io->buf[io->len++] = (uint8_t) ch;
|
||||
}
|
||||
|
||||
void mg_putchar_stralloc(char ch, void *param) {
|
||||
void mg_putchar_realloc(char ch, void *param) {
|
||||
char *s, *buf = *(char **) param;
|
||||
size_t len = buf == NULL ? 0 : strlen(buf), chunksize = 256;
|
||||
size_t new_size = len + 1 + 1 + chunksize;
|
||||
|
||||
Reference in new issue
Block a user