diff --git a/docs/README.md b/docs/README.md index ab8e6994..2a7eadae 100644 --- a/docs/README.md +++ b/docs/README.md @@ -285,11 +285,6 @@ to fail due to several undefined symbols. Create `mongoose_custom.c` and impleme the following functions (take a look at `src/sock.c` for the reference implementation): ```c -struct mg_connection *mg_connect(struct mg_mgr *mgr, const char *url, - mg_event_handler_t fn, void *fn_data) { - // implement this! -} - void mg_connect_resolved(struct mg_connection *c) { // implement this! } diff --git a/mongoose.c b/mongoose.c index 1af02e0e..acb70b72 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2604,6 +2604,7 @@ struct mg_connection *mg_mqtt_listen(struct mg_mgr *mgr, const char *url, + size_t mg_vprintf(struct mg_connection *c, const char *fmt, va_list ap) { char mem[256], *buf = mem; size_t len = mg_vasprintf(&buf, sizeof(mem), fmt, ap); diff --git a/src/net.c b/src/net.c index 46a3e17e..e80a39be 100644 --- a/src/net.c +++ b/src/net.c @@ -1,4 +1,5 @@ #include "net.h" +#include "dns.h" #include "log.h" #include "util.h" diff --git a/test/mongoose_custom.c b/test/mongoose_custom.c index 86bf988c..c3215c12 100644 --- a/test/mongoose_custom.c +++ b/test/mongoose_custom.c @@ -5,13 +5,6 @@ int mkdir(const char *path, mode_t mode) { return -1; } -struct mg_connection *mg_connect(struct mg_mgr *mgr, const char *url, - mg_event_handler_t fn, void *fn_data) { - (void) mgr, (void) url, (void) fn, (void) fn_data; - return NULL; -} - -void mg_connect_resolved(struct mg_connection *c); void mg_connect_resolved(struct mg_connection *c) { (void) c; }