Introduction to Java Programming-Comprehensive Version (6th Edition)
Review Questions
Section 25.2 Client/Server Computing
| 25.1 | How do you create a server socket? What port numbers can be used? What happens if a requested port number is already in use? Can a port connect to multiple clients ? |
| | |
| 25.2 | What are the differences between a server socket and a client socket? |
| 25.3 | How does a client program initiate a connection? |
| 25.4 | How does a server accept a connection? |
| 25.5 | How is data transferred between a client and a server? |
Sections 25.3 “25.4
| 25.6 | How do you find the IP address of a client that connects to a server? |
| 25.7 | How do you make a server serve multiple clients? |
Sections 25.5 “25.6
| 25.8 | Can an applet connect to a server that is different from the machine where the applet is located? |
| 25.9 | How do you find the host name of an applet? |
| 25.10 | How do you send and receive an object? |
Sections 25.7 “25.8
| 25.11 | Can an application retrieve a file from a remote host? Can an application update a file on a remote host? |
| 25.12 | How do you retrieve a file from a Web server? |
| 25.13 | What types of files can be displayed in a JEditorPane ? How do you display a file in a JEditorPane ? |
Section 25.10 Datagram Socket
| 25.14 | What are the differences between stream sockets and datagram sockets? How do you create a datagram socket? How do you set data in the packet? How do you send and receive packets? How do you find the IP address of the sender? |