CoAP library for D
Go to file
Tristan B. Velloza Kildaire 0c81ce635f CoapClient
- Removed the `Socket` instance
- `init()` now calls `begin()` on the messaging layer and no longer creates a new `Socket` itself
- `close()` now just calls `close()` on the messaging layer
- `transmitRequest(CoapRequest)` now calls `send(CoapPacket)` on the messaging layer instead of via a socket's `send(ubyte[])`

CoapMessagingLayer

- Added a `running` flag
- Added `begin()` which sets the running flag (ours) to `true`, it then creates and opens a `Socket` and then starts the reading loop
- Added `send(CoapPacket)` whcih wire-encoded the packet and then sends it over our `Socket`
- Added `close()` which sets the running flag to false, shutsdown the `Socket` (unblocking any blocking receives) and then closes the `Socket` (releasing the bound datagram port)
- Removed references to the `CoapClient`'s now-non-existent `Socket`
2023-09-22 17:19:38 +02:00
.github/workflows Update d.yml 2023-09-18 14:00:34 +02:00
source/doap CoapClient 2023-09-22 17:19:38 +02:00
.gitignore - Fixed .gitignore 2023-09-11 21:37:05 +02:00
dub.json Dub 2023-09-11 21:36:19 +02:00
LICENSE - Added LICENSE 2023-09-12 18:39:35 +02:00
README.md Update README.md 2023-09-12 18:43:55 +02:00

doap

D

doap is a CoAP library for the D programming language.

Usage

TODO: Add docs

License

This project is licensed under the LGPL v3.0.