Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months ago
JSON representation
Implementation of Mongoose OS RPC over UDP
- Host: GitHub
- URL: https://github.com/mongoose-os-libs/rpc-udp
- Owner: mongoose-os-libs
- License: other
- Created: 2019-07-16T14:36:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T00:18:28.000Z (about 3 years ago)
- Last Synced: 2024-07-31T21:51:47.617Z (5 months ago)
- Language: C
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mongoose-os - rpc-udp - Implementation of Mongoose OS RPC over UDP (Awesome Mongoose OS [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) / Official Libraries)
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
```