Being in your trouble, I will create a string and pass it to the ServerTCPWrite function. Something like
dataWrite xx;
sprintf (msg, "%d;%s", xx.event, xx.message);
ServerTCPWrite (handle, msg, strlen (msg), 1000);
The receiver can then rebuild the structure
char msg[256];
dataWrite xx;
ClientTCPRead(tcpH, msg, 256, 1000);
Scan (msg, "%d[x]%s", &xx.event, xx.message);
Hope this helps
Roberto