Java Reference
In-Depth Information
2. Would you ever need to implement a timeout in a client or server that uses TCP?
3. How can you determine the minimum and maximum allowable sizes for a socket's send
and receive buffers? Determine the minimums for your system.
4. Write an iterative dispatcher using the dispatching framework from this chapter.
5. Write the server side of a random-number server using the protocol factory framework
from this chapter. The client will connect and send the upper bound,
, on the random
number to the server. The server should return a random number between 1 and
B
,
inclusive. All numbers should be specified in binary format as 4-byte, two's-complement,
big-endian integers.
B
6. Modify TCPEchoClient.java so that it closes its output side of the connection before
attempting to receive any echoed data.
Search WWH ::




Custom Search