MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / ReportOneProtocol

Method ReportOneProtocol

src/Networking/NetworkInterface.cpp:136–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void NetworkInterface::ReportOneProtocol(NetworkProtocol protocol, const StringRef& reply) const noexcept
137{
138 if (protocolEnabled[protocol])
139 {
140 reply.lcatf("%s is enabled on port %u", ProtocolNames[protocol], portNumbers[protocol]);
141 }
142 else
143 {
144 reply.lcatf("%s is disabled", ProtocolNames[protocol]);
145 }
146}
147
148// End

Callers

nothing calls this directly

Calls 1

lcatfMethod · 0.80

Tested by

no test coverage detected