2016-05-29 16:02:10 +08:00
|
|
|
---
|
|
|
|
title: Overview
|
2016-09-01 22:19:01 +08:00
|
|
|
items:
|
|
|
|
# - { name: usage-example.md }
|
|
|
|
- { name: concept.md }
|
|
|
|
- { name: mbufs.md }
|
|
|
|
- { name: event-handler.md }
|
|
|
|
- { name: events.md }
|
|
|
|
- { name: conn-flags.md }
|
|
|
|
- { name: build-options }
|
|
|
|
- { name: usage-example.md }
|
2016-05-29 16:02:10 +08:00
|
|
|
---
|
|
|
|
|
2016-09-01 22:19:01 +08:00
|
|
|
Mongoose is a networking library written in C.
|
|
|
|
It is a swiss army knife for embedded network programming.
|
2016-07-21 21:30:03 +08:00
|
|
|
It implements event-driven non-blocking APIs for TCP, UDP, HTTP,
|
|
|
|
WebSocket, CoAP, MQTT for client and server mode.
|
2016-05-29 16:02:10 +08:00
|
|
|
Features include:
|
|
|
|
|
|
|
|
- Cross-platform: works on Linux/UNIX, MacOS, QNX, eCos, Windows, Android,
|
2016-09-01 22:19:01 +08:00
|
|
|
iPhone, FreeRTOS
|
2016-05-29 16:02:10 +08:00
|
|
|
- Native support for [PicoTCP embedded TCP/IP stack](http://www.picotcp.com),
|
|
|
|
[LWIP embedded TCP/IP stack](https://en.wikipedia.org/wiki/LwIP)
|
2016-09-01 22:19:01 +08:00
|
|
|
- Works on a variety of embedded boards: TI CC3200, TI MSP430, STM32, ESP8266;
|
|
|
|
on all Linux-based boards like Raspberry PI, BeagleBone, etc
|
|
|
|
- Single-threaded, asynchronous, non-blocking core with simple event-based API
|
2016-07-21 21:30:03 +08:00
|
|
|
- Built-in protocols:
|
2016-09-01 22:19:01 +08:00
|
|
|
- plain TCP, plain UDP, SSL/TLS (one-way or two-way), client and server
|
2016-05-29 16:14:28 +08:00
|
|
|
- HTTP client and server
|
|
|
|
- WebSocket client and server
|
|
|
|
- MQTT client and server
|
|
|
|
- CoAP client and server
|
|
|
|
- DNS client and server
|
|
|
|
- asynchronous DNS resolver
|
2016-05-29 16:02:10 +08:00
|
|
|
- Tiny static and run-time footprint
|
|
|
|
- Source code is both ISO C and ISO C++ compliant
|
|
|
|
- Very easy to integrate: just copy
|
|
|
|
[mongoose.c](https://raw.githubusercontent.com/cesanta/mongoose/master/mongoose.c) and
|
|
|
|
[mongoose.h](https://raw.githubusercontent.com/cesanta/mongoose/master/mongoose.h)
|
|
|
|
files to your build tree
|