Client application.
More...
#include <client.hpp>
Inherits ndnph::PacketHandler.
|
| void | loop () final |
| | Override to be invoked periodically.
|
| |
| bool | processData (Data data) final |
| | Override to receive Data packets.
|
| |
|
Public Member Functions inherited from ndnph::PacketHandler |
| | PacketHandler ()=default |
| | Construct without adding to Face.
|
| |
| | PacketHandler (Face &face, int8_t prio=0) |
| | Construct and add handler to Face.
|
| |
Protected Member Functions inherited from ndnph::PacketHandler |
| virtual | ~PacketHandler () |
| | Remove handler from Face.
|
| |
| Face * | getFace () const |
| |
| const PacketInfo * | getCurrentPacketInfo () const |
| | Retrieve information about current processing packet.
|
| |
| template<typename Packet > |
| bool | send (Region ®ion, const Packet &packet, PacketInfo pi={}) |
| | Synchronously transmit a packet.
|
| |
| template<typename Packet , typename... PacketInfoModifier> |
| bool | send (Region ®ion, const Packet &packet, const PacketInfoModifier &... pim) |
| | Synchronously transmit a packet.
|
| |
| template<typename Packet , typename... Arg, typename = typename std::enable_if< !std::is_base_of<Region, typename std::decay<Packet>::type>::value>::type> |
| bool | send (const Packet &packet, Arg &&... arg) |
| | Synchronously transmit a packet.
|
| |
| template<typename... Arg> |
| bool | reply (Arg &&... arg) |
| | Synchronously transmit a packet in reply to current processing packet.
|
| |
◆ Callback
Callback to be invoked upon completion of a certificate request procedure.
- Parameters
-
| ctx | context pointer. |
| cert | obtained certificate, or a falsy value upon failure. |
◆ loop()
| void ndnph::ndncert::client::Client::loop |
( |
| ) |
|
|
inlinefinalprivatevirtual |
◆ processData()
| bool ndnph::ndncert::client::Client::processData |
( |
Data |
| ) |
|
|
inlinefinalprivatevirtual |
Override to receive Data packets.
- Return values
-
| true | packet has been accepted by this handler. |
| false | packet is not accepted, and should go to the next handler. |
Reimplemented from ndnph::PacketHandler.
◆ requestCertificate()
| static void ndnph::ndncert::client::Client::requestCertificate |
( |
const Options & |
opts | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file:
- /home/runner/work/esp8266ndn/NDNph/src/ndnph/app/ndncert/client.hpp