HTTP
侃侃_天下
没有
展开
-
基于 mongoose HttpClient
/* * Copyright (c) 2014 Cesanta Software Limited * All rights reserved * * This program fetches HTTP URLs. */#include "mongoose.h"#include <sstream>static int s_exit_flag = 0;#define P...原创 2018-04-06 12:22:00 · 7861 阅读 · 0 评论 -
基于mongoose 的web server端
/** Copyright (c) 2014 Cesanta Software Limited* All rights reserved*/#include "mongoose.h"static const char *s_http_port = "8000";static struct mg_serve_http_opts s_http_server_opts;static ...原创 2018-04-06 12:30:40 · 5288 阅读 · 1 评论 -
mongoose TCP Client ,Server同时存在,同时绑定多个端口,访问多个Server端
#include "network/mongoose.h"static void ev_handler(struct mg_connection *nc, int ev, void *p) { struct mbuf *io = &nc->recv_mbuf; (void) p; switch (ev) { case MG_EV_RECV: ...原创 2018-05-21 11:09:03 · 2034 阅读 · 0 评论