TCP IP Illustrated

When used with the source client i it delays after

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: R socket option) for a TCP end point to n. A linger time of 0 means when the network connection is closed, any data still queued for sending is discarded and a reset is sent to the peer (Section 18.7). A positive linger time is the time (in 100ths of a second) that a close on the network connection should wait for all outstanding data to be sent and acknowledged. If, after closing the network connection, all the pending data has not been sent and acknowledged when this timer expires, the close will return an error. -N Set the TCP_NODELAY socket option to disable the Nagle algorithm (Section 19.4). -O n Specify the number of seconds for a TCP server to pause before accepting the first client connection. -P n Specify the number of seconds to pause before the first read or write of the network. This can be used with the sink server (-is) to delay after accepting the connection request from the client but before performing the first read from the network. When used with the source client (-i) it delays after the connection has been established, but before the first write to the network. Also see the -p option to pause between each successive read or write. -Q n Specify the number of seconds for a TCP client or server to pause after receiving an end-of-file from the other end, but before closing its end of the connection. -R n Set the socket's receive buffer (SO_RCVBUF socket option) to n. This can directly affect the size of the receive window advertised by TCP. With UDP this specifies the largest UDP datagram that can be received. -S n Set the socket's send buffer (SO_SNDBUF socket option) to n. With UDP this specifies the largest UDP datagram that can be sent. -U n Enter TCP's urgent mode after write number n to the network. One byte of data is written to initiate urgent mode (Section 20.8). file:///D|/Documents%20and%20Settings/bigini/Docu...homenet2run/tcpip/tcp-ip-illustrated/append_c.htm (4 of 4) [12/09/2001 14.48.01] Appendix D: Solutions to Selected Exercises Solutions to Selected Exerc...
View Full Document

Ask a homework question - tutors are online