ok I will mike, thanks for continuing to help me through this also and not giving up! :)
One thing i noticed as well this morning was I stepped through the code on client and server trying to catch anything wrong. And outputting as much as i could for debugging. It seems the server is sending the values as they should be and they dont change at anypoint, including after the call to send.
However, on the receiving side, once I pull in the header correctly the call to receive the data does return a value of 15 on byte size that got received, but checking the value asscoiated with the data while debugging, showed a 0.
I changed my void* for my data to a char* instead and had the receiving side just do:
p.data = new char[p.h.size];
then call the receive for the characters
2 things occured.
(1) i got an error saying "cannot convert from 'unsigned int *_w64' to 'size_t'
"
(2) still getting a 0 when receiving the 15 bytes
with regards to 1, is this right to have it as a _w64? could this be my problem in why i am havign to have to do a ntohs on my header values i pull out on the receiving end?
Packeting and Tokenizing TCP/IP
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement