Original Post
Hey all, How the hell do you go about sending structures using send() and recv() with WinSock?? For instance, I want to send a struct PACKET with its fields but I get an error on compilation which says it can''t convert parameter 2 (the struct) to a char *. Here''s how I set it up:
recv(Port, header, sizeof(header), 0);
The header is the struct I want to send (or receive). I tried casting (a long shot, I knew) and that didn''t work, or I just didn;t do it right. Can you send structures? Casue if not, that would really ruin my day....
==============================
"Need more eeenput..."
- #5, "Short Circuit"
==============================