Code:
 
typedef struct MYDATA {
int x;
char c[20];
} MYDATA;


MYDATA mydata;

// sending data
mydata.x = 1;
strcpy(mydata.c,"Test!");
send_data_to(NULL,mydata,sizeof(MYDATA));

//receiving data
function on_client_event(void* buffer)
{
if (event_type == EVENT_DATA)
memcpy(mydata,buffer,sizeof(MYDATA));
}



That's not with entity skills - I don't want to deny you the pleasure to program your game yourself - but should give you the basic idea.