MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / getClientTypeName

Function getClientTypeName

src/networking.cpp:3847–3855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3845}
3846
3847const char *getClientTypeName(int clientType) {
3848 switch(clientType) {
3849 case CLIENT_TYPE_NORMAL: return "normal";
3850 case CLIENT_TYPE_SLAVE: return "slave";
3851 case CLIENT_TYPE_PUBSUB: return "pubsub";
3852 case CLIENT_TYPE_MASTER: return "master";
3853 default: return NULL;
3854 }
3855}
3856
3857/* The function checks if the client reached output buffer soft or hard
3858 * limit, and also update the state needed to check the soft limit as

Callers 2

configGetCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected