The problem I am having is printf doesnt print all the data that is being returned from a client response. (verified data is being sent back via packet sniffer)
#define MAXBUFFER 24576
char buffer[MAXBUFFER];
......
datastream = read(sock,buffer,MAXBUFFER - 1);
printf("%s",buffer);
......
What is the best approach to printing all the client data to the console ... while eliminating the potential of a BOF?