Hi,
I'm a BSD Socket beginner and I would like to make a small networking program written in C.
I've read many instructional articles and I haven't found a example how to send/receive a non-char - string sending everywhere. I mean, I thought about sending some various structures as "frames". Which would contain: username, filename, data, timestamp, etc. for instance.
The problem is how should I receive the various structures /"frames"/ by recv() func?
Can anybody give me an advice with this? Am I thinking right? I would really appreciate any help with sending a non-string-only data.