Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mongoose-os-libs/rpc-udp

Implementation of Mongoose OS RPC over UDP
https://github.com/mongoose-os-libs/rpc-udp

Last synced: 21 days ago
JSON representation

Implementation of Mongoose OS RPC over UDP

Awesome Lists containing this project

README

        

# Implementation of Mongoose OS RPC over UDP

## Overview

Frames are sent as datagrams. Fragmentation is not supported, so 1 frame = 1 datagram.

Responses are supported, but because UDP is not reliable, it is best suited for notifications.

## Listener configuration

Set `rpc.udp.listen_addr` to `udp://0.0.0.0:1234` to listen on port 1234.

## Outbound channel configuration

To use UDP for outbound RPC, set `rpc.udp.dst_addr` to the address of the server / peer, e.g. `udp://192.168.1.23:1234`.

## mos tool support

`mos` supports UDP transport via the `udp://` port scheme, e.g.:

```
$ mos call --port udp://192.168.11.5:1234/ Sys.GetInfo
```