TCP IP Illustrated

With udp on a system that supports multicasting it

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: se between each read or write. This can be used with the source client (-i) or sink server (-is) to delay between each read or write of network. Also see the -P option to pause before the first read or write. -q n Specify the size of the pending connection queue for the TCP server: the number of accepted connections that TCP will queue for the application (Figure 18.23). The default is 5. -r n When used with the -is options, n specifies the size of each read from the network. The default is 1024 bytes per read. -s Operate as a server instead of as a client. -u Use UDP instead of TCP. -v Verbose. Print additional details (such as the client and server ephemeral port numbers) onto standard error. -w n When used with the -i option, specifies the size of each write to the network. The default is 1024 bytes per write. -A Enable the SO_REUSEADDR socket option. With TCP this allows the process to assign itself a port number that is part of a connection that is in the 2MSL wait. With UDP on a system that supports multicasting, it allows multiple processes to use the same local port to receive broadcast or multicast datagrams. -B Enable the SO_BROADCAST socket option to allow UDP datagrams to be sent to a broadcast IP address. -D Enable the SO_DEBUG socket option. This causes additional debugging information to be maintained by the kernel for this TCP connection (Section A.6). This information can be output later by running the trpt(8) program. file:///D|/Documents%20and%20Settings/bigini/Docu...homenet2run/tcpip/tcp-ip-illustrated/append_c.htm (3 of 4) [12/09/2001 14.48.01] Appendix C: The sock Program -E Enable the IP_RECVDSTADDR socket option, if supported by the implementation (Section 11.12). This is intended for UDP servers, to print the destination IP address of the received UDP datagram. -F Specifies a concurrent TCP server. That is, the server creates a new process using the fork function for each client connection. -K Enable TCP's SO_KEEPALIVE socket option (Chapter 23). -L n Set the linger time (SO_LINGE...
View Full Document

This test prep was uploaded on 04/04/2014 for the course ECE EL5373 taught by Professor Guoyang during the Spring '12 term at NYU Poly.

Ask a homework question - tutors are online