|
@@ -617,6 +617,11 @@ static void *call_user(struct mg_connection *conn, enum mg_event event) {
|
|
|
|
|
|
|
|
void *mg_get_user_data(struct mg_connection *conn) {
|
|
void *mg_get_user_data(struct mg_connection *conn) {
|
|
|
return conn != NULL && conn->ctx != NULL ? conn->ctx->user_data : NULL;
|
|
return conn != NULL && conn->ctx != NULL ? conn->ctx->user_data : NULL;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const char *mg_get_conn_buf(struct mg_connection *conn, int *buf_size){
|
|
|
|
|
+ *buf_size = conn->buf_size;
|
|
|
|
|
+ return conn->buf;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const char *mg_get_log_message(const struct mg_connection *conn) {
|
|
const char *mg_get_log_message(const struct mg_connection *conn) {
|