Original Post
Hi all,
I''m learning sockets, and was trying to develop a simple
method to send data packets.
Let''s see if i can explain this, I would like to have a memmory area that is shared by both a structure and a char[256]
when sending, i send a packet of 256 chars, but if i could write my structure on top of the same memmory the char[256] ocupies,
i would actually be sending my strcuture...
so, what i want is to write into a structure, that ocupies the same memmory space than a char[256] declared variable, which is
the one who will get sent in the socket functions...
Hope i could make myself clear,
Season''s Greetings,