Reputation: 29
I have to serialize some data and after send it using socket AF_UNIX. I have read (here) that I can't create a struct and just send it using a cast (void *). So, I would like to know which is the best method to handle this problem. Thank you!
Upvotes: 0
Views: 753
Reputation: 2586
You basically have two options:
Upvotes: 1