mirror of
https://github.com/deavmi/doap
synced 2024-07-04 14:10:47 +02:00
CoapMessagingLayerFR
- Added method `getEndpointAddress()`
This commit is contained in:
parent
1004d027cb
commit
faa9bc1bc1
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user