Reading a C-struct via sockets into python
Reading a C-struct via sockets into python Question: On an embedded device running a C application, I have defined this struct: struct TestStruct { float first; int second; char third; }; On request, I send this struct via sockets: else if(strcmp(str, “Get Stru”) == 0) { TestStruct testStruct; testStruct.first = 1.2; testStruct.second = 42; testStruct.third …