MCPcopy Create free account
hub / github.com/apache/brpc / PrintSupportedProtocols

Function PrintSupportedProtocols

src/brpc/server.cpp:211–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211static void PrintSupportedProtocols(std::ostream& os, void*) {
212 std::vector<Protocol> protocols;
213 ListProtocols(&protocols);
214 for (size_t i = 0; i < protocols.size(); ++i) {
215 if (i != 0) {
216 os << ' ';
217 }
218 os << (protocols[i].name ? protocols[i].name : "(null)");
219 }
220}
221
222static void PrintSupportedCompressions(std::ostream& os, void*) {
223 std::vector<CompressHandler> compressors;

Callers

nothing calls this directly

Calls 2

ListProtocolsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected