Hello everybody,
I have a problem receiveing data on a TCP socket. I am sending a
binary struct over and when receiveing it I found a lot o bytes
containg 0 inside at the begining. Practically I send 259 bytes, the
first 255 bytes form a string and the last 4 are an integer. When
calling recv I get the correct number of bytes (259 in this case), but
the first about 100 bytes contain only 0 values, the corect string
content starts at byte 101 (surely enough i don't get the final part
of the string and neither I get the integer).
Anyone has a solution for this kind of situation? It seems I get
some kind of reset or keep-alive and that the first 100 bytes are
those...
Thanks a lot,
Rumburak.