This preview shows page 1. Sign up to view the full content.
Unformatted text preview: message from the server. • Server: the server accepts messages from the client and sends a message back to the client only when the number of characters received is a multiple of 2. (b) Using the time() function which gives the number of seconds elapsed since 01/01/1900, measure the time it takes for the client to send all the characters. Estimate how much time the server waits before sending a non-biggybacked acknowledgement. For instance: #include <ctime> . . . time_t t1=time(0); //the code you need to measure the time for goes here time_t t2=time(0); cout<<t2-t1; (c) Repeat part (b) with Nagle’s algorithm disabled....
View Full Document
This note was uploaded on 03/27/2010 for the course CSCI 415 taught by Professor Saadmneimneh during the Spring '08 term at CUNY Hunter.
- Spring '08
- Computer Networks