mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
Handle #1562 - add udp/tcp extra param to mg_mkpipe()
This commit is contained in:
1 parent
dc486a2aa3
commit
a3d63c095a
11 files changed
+68
-47
No files matched your search
@@ -77,7 +77,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
||||
mg_http_reply(c, 200, "Host: foo.com\r\n", "hi\n");
|
||||
} else {
|
||||
// Multithreading code path
|
||||
int sock = mg_mkpipe(c->mgr, pcb, c); // Create pipe
|
||||
int sock = mg_mkpipe(c->mgr, pcb, c, true); // Create pipe
|
||||
start_thread(thread_function, (void *) (size_t) sock); // Start thread
|
||||
}
|
||||
} else if (ev == MG_EV_CLOSE) {
|
||||
|
||||
@@ -13,7 +13,7 @@ LDFLAGS ?= -Tlink.ld -nostartfiles -nostdlib --specs nano.specs \
|
||||
SOURCES = boot.c main.c syscalls.c $(ROOT)/drivers/mip_driver_stm32.c \
|
||||
$(ROOT)/mongoose.c
|
||||
|
||||
all build: $(TARGET).bin
|
||||
all build example: $(TARGET).bin
|
||||
|
||||
$(TARGET).bin: $(TARGET).elf
|
||||
$(DOCKER) $(CROSS)-objcopy -O binary $< $@
|
||||
|
||||
Reference in new issue
Block a user