mirror of
https://github.com/deavmi/doap
synced 2024-07-02 11:47:34 +02:00
CoAP library for D
- 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` |
||
---|---|---|
.github/workflows | ||
source/doap | ||
.gitignore | ||
dub.json | ||
LICENSE | ||
README.md |