CoapMessagingLayerFR

- Added method `getEndpointAddress()`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-22 17:49:10 +02:00
parent 1004d027cb
commit faa9bc1bc1

View File

@ -1,6 +1,7 @@
module doap.client.mesglayer;
import doap.client.client : CoapClient;
import std.socket : Address;
public abstract class CoapMessagingLayerFR
{
@ -31,4 +32,15 @@ public abstract class CoapMessagingLayerFR
{
return this.client;
}
/**
* Retrieves the CoAP endpoint the client is
* connected to
*
* Returns: the endpoint address
*/
protected final Address getEndpointAddress() // Final in Interface
{
return this.client.address;
}
}