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

Class ChannelSignature

src/brpc/socket_map.h:33–38  ·  view source on GitHub ↗

Different signature means that the Channel needs separate sockets.

Source from the content-addressed store, hash-verified

31
32// Different signature means that the Channel needs separate sockets.
33struct ChannelSignature {
34 uint64_t data[2];
35
36 ChannelSignature() { Reset(); }
37 void Reset() { data[0] = data[1] = 0; }
38};
39
40inline bool operator==(const ChannelSignature& s1, const ChannelSignature& s2) {
41 return s1.data[0] == s2.data[0] && s1.data[1] == s2.data[1];

Callers 2

ComputeChannelSignatureFunction · 0.85
GetNamingServiceThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected