#define COMM_SET_FREQ ((unsigned char) 0x01)
struct command{
unsigned char cmd;
unsigned int param;
};
unsigned char cmds;
int iFreq = 500000000;
cmds = COMM_SET_FREQ;
struct command cmd = {cmds, htonl(iFreq)};
answer = send(sConnect, (const char*)&cmd, sizeof(cmd), 0);
and the response is :
client accepted!
set freq -858993635
ll+, now 1
ll+, now 2
ll+, now 3
I'm sure I'm missing something I just don't know what.