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

Method SendRequest_RGBController_SaveMode

NetworkClient.cpp:844–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

842}
843
844void NetworkClient::SendRequest_RGBController_SaveMode(unsigned int dev_idx, unsigned char * data, unsigned int size)
845{
846 if(change_in_progress)
847 {
848 return;
849 }
850
851 NetPacketHeader request_hdr;
852
853 request_hdr.pkt_magic[0] = 'O';
854 request_hdr.pkt_magic[1] = 'R';
855 request_hdr.pkt_magic[2] = 'G';
856 request_hdr.pkt_magic[3] = 'B';
857
858 request_hdr.pkt_dev_idx = dev_idx;
859 request_hdr.pkt_id = NET_PACKET_ID_RGBCONTROLLER_SAVEMODE;
860 request_hdr.pkt_size = size;
861
862 send(client_sock, (char *)&request_hdr, sizeof(NetPacketHeader), MSG_NOSIGNAL);
863 send(client_sock, (char *)data, size, MSG_NOSIGNAL);
864}
865
866void NetworkClient::SendRequest_LoadProfile(std::string profile_name)
867{

Callers 1

DeviceSaveModeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected