Moved HTTP client, ssl and some util code into separate files

This commit is contained in:
Sergey Lyubka committed 2013-10-03 19:09:35 +01:00
1 parent 47606a71ee
commit cafaecfc56
8 files changed
+702 -693

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#include "internal.h"
// Return fake connection structure. Used for logging, if connection
// is not applicable at the moment of logging.
static struct mg_connection *fc(struct mg_context *ctx) {
static struct mg_connection fake_connection;
fake_connection.ctx = ctx;
// See https://github.com/cesanta/mongoose/issues/236
fake_connection.event.user_data = ctx->user_data;
return &fake_connection;
}