Original Post
This has driven me potty all day yesterday and today. I have an app which is squirting a gob of data at me via UDP. It's a fairly complex chunk of data which is organised as a struct. How can I use a struct as the receive buffer with recvfrom ? No matter what I try, it bitches at me. This is what I want to use... struct AIRSTAT { float : pitch; float : roll; float : yaw; etc... }; AIRSTAT mybuf; How would/could I refer to mybuf using recvfrom? Would a union work which would combine my struct with a char array? I'm stuck - and believe me I've tried!! Help!