MCPcopy Create free account
hub / github.com/attermann/microReticulum / InInterface

Class InInterface

test/test_rns_loopback/test_rns_loopback.cpp:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7const char destination_table_path[] = "./destination_table";
8
9class InInterface : public RNS::InterfaceImpl {
10public:
11 InInterface(const char *name = "InInterface") : RNS::InterfaceImpl(name) {
12 _OUT = false;
13 _IN = true;
14 }
15 virtual ~InInterface() {
16 _name = "(deleted)";
17 }
18 // Incoming interface only, send_outgoing not currently implemented
19 virtual bool send_outgoing(const RNS::Bytes &data) { return true; }
20 // Incoming is be handled automatically by InterfaceImpl::handle_incoming called via Interface::handle_incoming from OutInterface
21};
22
23class OutInterface : public RNS::InterfaceImpl {
24public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected