I would like to send a struct :
typedef struct myStruct
{
int nb_trame;
bool tabBool[20];
} myStruct;
via a QUpdSocket.
I would like to not serialize it (so please no answer with QDataStream
... ^^).
Will this work ? :
myStruct a;
//set a variable
mySocket->writeDatagram( (const char*) &a, sizeof(a), someQHostAddress, somePort);