Good morning I am trying to create a proxy for learning purposes, but I have a failure when I want to re-transmit the buffer from the server to the client, here's my function:
send(Socket_Server,Reques,strlen(Request),0);
int receive = 0;
while(receive = recv(Socket_Server,buff,BUFFER_SIZE,0) > 0){
send(Socket_Server,buff,BUFFER_SIZE,0);
}
How can I create the proper function that Chunk-Encoding can handle and not lose information in the re-transmission?