MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / GetProtocolVersion

Method GetProtocolVersion

NetworkClient.cpp:80–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80unsigned int NetworkClient::GetProtocolVersion()
81{
82 unsigned int protocol_version = 0;
83
84 if(server_protocol_version > OPENRGB_SDK_PROTOCOL_VERSION)
85 {
86 protocol_version = OPENRGB_SDK_PROTOCOL_VERSION;
87 }
88 else
89 {
90 protocol_version = server_protocol_version;
91 }
92
93 return(protocol_version);
94}
95
96bool NetworkClient::GetConnected()
97{

Callers 3

UpdateInfoMethod · 0.45
DeviceUpdateModeMethod · 0.45
DeviceSaveModeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected