• Stars
    star
    440
  • Rank 99,050 (Top 2 %)
  • Language
    C
  • License
    Other
  • Created almost 11 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Async non-blocking multi-protocol networking library for C/C++

Fossa: Multi-Protocol Networking Library

Note: As of September 21st 2015, Fossa project has been merged back into Mongoose project

Fossa is a multi-protocol networking library written in C. It provides easy to use event-driven interface that allows to implement network protocols or scalable network applications with little effort. Fossa helps developers to manage the complexity of network programming and let them concentrate on the logic, saving time and money.

Fossa has built-in support for several protocols, like HTTP, Websocket, MQTT, mDNS. Example applications include Websocket-based chat server, JSON-RPC server, database server with RESTful API, MQTT broker, netcat with SSL and hexdump, Raspberry PI camera video feed + led control, and more.

Fossa is ideal for the embedded environments, it has been designed as an open source platform for connecting devices and bringing them online.

Features

  • Cross-platform: works on Linux/UNIX, QNX, eCos, Windows, Android, iPhone, etc
  • Single-threaded, asynchronous, non-blocking core with simple event-based API
  • Builtin protocols:
    • plain TCP, plain UDP, SSL/TLS (over TCP, one-way or two-way)
    • HTTP client, HTTP server
    • Websocket client, Websocket server
    • JSON-RPC client, JSON-RPC server
    • MQTT client, MQTT broker
    • CoAP client, CoAP server
    • DNS client, DNS server, async DNS resolver
  • Tiny static and run-time footprint
  • Source code is both ISO C and ISO C++ compliant
  • Very easy to integrate: just copy fossa.c and fossa.h files to your build tree
  • Extensively tested and production-ready, trusted by many blue chip businesses

Examples & Documentation

  • User Guide - Detailed User Guide and API reference
  • examples - Collection of well-commented examples. To build any example, go into respective directory and type make

Contributions

People who have agreed to the Cesanta CLA can make contributions. Note that the CLA isn't a copyright assigment but rather a copyright license. You retain the copyright on your contributions.

License

Fossa is released under GNU GPL v.2. Businesses have an option to get non-restrictive, royalty-free commercial license and professional support from Cesanta.

More Repositories

1

mongoose

Embedded Web Server
C
11,050
star
2

mongoose-os

Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
C
2,508
star
3

mjs

Embedded JavaScript engine for C/C++
C
1,903
star
4

elk

A low footprint JavaScript engine for embedded systems
C
1,581
star
5

v7

Embedded JavaScript engine for C/C++
C
1,405
star
6

docker_auth

Authentication server for Docker Registry 2
Go
1,276
star
7

frozen

JSON parser and generator for C/C++ with scanf/printf like interface. Targeting embedded systems.
C
691
star
8

slre

Super Light Regexp engine for C/C++
C
520
star
9

mjson

C/C++ JSON parser, emitter, JSON-RPC engine for embedded systems
C
402
star
10

ssl_wrapper

Wrap plain TCP traffic into SSL
C
85
star
11

mongoose-os-smart-light

An example of full IOT product based on Mongoose OS
JavaScript
43
star
12

mDash

Arduino / ESP-IDF library for mdash.net IoT service
C
33
star
13

mos-tool

The Mongoose OS command line tool
24
star
14

str

A single header string library for microcontrollers - printf, json, etc
C
23
star
15

mongoose-os-docs

Mongoose OS Documentation
HTML
19
star
16

polar

PorarSSL <-> OpenSSL compatibility layer
C
17
star
17

validate-json

JSON validation tool and library
Go
16
star
18

stm32-bluepill

STM32 BluePill baremetal firmware for remote control via a CCM module
C
12
star
19

mdash-smart-light

a full IoT product reference design
JavaScript
10
star
20

mongoose-os-ide

VSCode extension for Mongoose OS
JavaScript
9
star
21

mip

Mini TCP/IP stack for embedded devices
C
7
star
22

arduino-drivers

C
6
star
23

homebrew-mos

Ruby
6
star
24

ucl

UCL handling library in Go
Go
5
star
25

gopro

go tcp and serial protocol proxy and dumper
Go
5
star
26

tcpuart

TCPUART
Makefile
5
star
27

mongoose-os-device-simulator

C
4
star
28

micro-printf

Tiny extendable printf for microcontrollers
C
3
star
29

mongoose-esp-idf

Mongoose Library component for ESP-IDF
CMake
3
star
30

goxnet

Fork of golang.org/x/net/websocket with fixes
Go
3
star
31

clubby_demo_android

Java
2
star
32

ubjson

Go
2
star
33

mongoose-wizard

2
star
34

vcon-app-example

A complete fleet dashboard built on https://vcon.io IoT platform.
JavaScript
2
star
35

aws-pico-tutorial

HTML
1
star
36

ccm-test-fw

Test firmware projects for CCM
C
1
star
37

mongoose-iot-examples

C
1
star
38

simplelink_mbed

simplelink SPI driver for mbed
C
1
star
39

gerrit-test

Test for gerrithub
C
1
star
40

binary

Makefile
1
star