猫鼬没有mg_create_server功能?

Mongoose has no mg_create_server function?

我正在关注 Mongoose Embedding Guide,但我收到错误消息:

error: ‘mg_create_server’ was not declared in this scope
     struct mg_server *server = mg_create_server(NULL, NULL);

这是从嵌入指南中逐字复制的。

正在查看 mongoose.h, there is no mg_create_server anywhere to be found! Neither in that latest version, nor 5.1, nor 4.1(来自 google 代码档案)。

我在这里错过了什么?

mg_create_server 显然存在于 version 5.6. Version 6.0 (the latest) has changed the API, and they didn't update their embedding guide. Here is an example of a RESTful server with the latest version of Mongoose. Here 中是最新的 API 文档。