Hi all, a question about networking winsock size thing.
okay im sitting here and cannot figure this one out, i need a simple and clean method on getting size convertet from hex to a value.. lets say packet looks like this: [0A 00] [xx xx xx xx 8 byte data xx xx xx xx] k, we first i pop in a receive... recv(blablabla, 2, 0) receive the first 2 (wich is size 0A 00 = 10 bytes) thats size + size of TOTAL packet (dont ask) so, i wanna convert the 0A 00 to 10 (-2) to pop the next recv (the data) int size = 10-2; recv(data, size, 0) well you get the idea... a quick way to do that ?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement