0

im sending a file using TCPSocket and its being sent correctly but the problem is in my split function it converts the binary bytes to plain characters if i writed the orignal received buffer to the file it gives me real bytes 100% like orignal file i need split function to split the sent messages because some times if i sent 2 messages in same time they will be received as 1 message

what do you think what should i do?

thanks

Solution :

i replaced sprintf with memcpy and it works perfectly now :) thanks everyone.

TariqoO
  • 46
  • 1
  • 9

0 Answers0