TCP IP Illustrated

TCP IP Illustrated

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: on port 6001, not 6000. We then start a client on another host and specify display number 1, not 0, so the client connects to xscope, not directly to the server. When the connection request from the client arrives, xscope creates a TCP connection to the real server at port 6000, and copies everything between the client and server, and produces a readable description of the requests and replies. We'll start xscope on our host sun and then run the xclock client on the host svr4. svr4 % DISPLAY=sun:l xclock -digital -update 5 This displays the time and date in the digital format Thu Sep 9 10:32:55 1993 in a window on the host sun. We specify an update time of once every 5 seconds. We specify the -q option for xscope to produce minimal output. Various levels of verbosity are available, to see all the fields in each message. The following output shows the first three requests and replies. sun % xscope -q file:///D|/Documents%20and%20Settings/bigini/Documenti/homenet2run/tcpip/tcp-ip-illustrated/other.htm (9 of 11) [12/09/2001 14.47.58] Chapter 30. Other TCP/IP Applications 0.00: Client -> 12 bytes 0.02: 0.03: Client -> 48 bytes ............REQUEST: CreateGC ............REQUEST: GetProperty 0.20: 0.30: Client -> 8 bytes 0.38: Client -> 20 bytes ............REQUEST: InternAtom 0.43: 152 bytes <-- X11 Server 396 bytes <-- X11 Server ..............REPLY: GetProperty 32 bytes <-- XII Server ..............REPLY: InternAtom The first client message at time 0.00 and the server's response at time 0.02 are the standard connection setup between the client and server. The client identifies its byte ordering and the version of the server that it expects. The server responds with various information about itself. The next message at time 0.03 contains two client requests. The first request creates a graphics context in the server in which the client will draw. The second gets a property from the server (the RESOURCEJVIANAGER property). Properties provide for communication between clien...
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