Section 15.12 Chapter Summary
Subsection 15.12.1 Technical Terms
|busy waiting||callback method||client|
|client/server protocols||domain name||ethernet protocol|
|File Transfer Protocol (FTP)||get||HyperText Transfer Protocol (HTTP)|
|internet||Internet||Internetworking Protocol (IP)|
|Java Server Page (JSP)||packet||port|
|sandbox security model||scriptlet||server|
|servlet||Simple Mail Transfer Protocol (SMTP)||socket|
|trusted code||Uniform Resource Locator (URL)||World Wide Web (WWW)|
Subsection 15.12.2 Summary of Important Points
- An internet is a collection of two or more distinct networks joined by routers, which have the task of translating one network’s language to the other’s. The Internet is a network of networks that uses the Internet Protocol (IP) as the translation medium.
- A protocol is a set of rules that controls the transfer of information between two computers in a network. The HyperText Transfer Protocol (HTTP) governs information exchange on the World Wide Web (WWW). The Simple Mail Transfer Protocol controls mail service on the Internet. The File Transfer Protocol (FTP) controls the transfer of files between Internet computers. The Domain Name System (DNS) governs the use of names on the Internet.
- A client/server application is one that divides its task between a client, which requests service, and a server, which provides service. Many Internet applications and protocols are based on the client/server model.
- Lower-level protocols, such as the ethernet protocol and token ring protocol, govern the transmission of data between computers on a single network. The Internet Protocol (IP) translates between such protocols.
- A Uniform Resource Locator (URL) is a standard way of specifying addresses on the Internet. It consists of several parts separated by slashes and colons:
java.net.URLclass is used to represent URLs.
- Files of text or data (images, audio files) on the Internet or Web can be downloaded using the same
OutputStreams as files located on a disk. To read or write a resource located on a network, you need to connect its URL to an input or output stream.
java.awt.Toolkitclass contains useful methods for downloading
Images into an application.
- A socket is a two-way communication channel between two running programs on a network. The
java.net.Socketclass can be used to set up communication channels for client/server applications. The server process listens at a socket for requests from a client. The client process requests service from a server listening at a particular socket. Once a connection exists between client and server, input and output streams are used to read and write data over the socket.
Solutions 15.12.3 Solutions to Self-Study Exercises
15.2 An Overview of Networks
15.2.3 Network Protocols
18.104.22.168 Application Protocols
22.214.171.124.1. URL parts.
15.2.4 Client/Server Applications
126.96.36.199. Client-Server Exercise.
15.5 The SlideShow Application
188.8.131.52. Create Your Own Slideshow.
184.108.40.206. Design Soundtrack.
15.6 The Real-Estate Application
15.6.11 Self-Study Exercise
Exercise 15.6.9. Create Your Own App.
15.9 Playing One Row Nim Over the Network
15.9.4 Self-Study Exercise
220.127.116.11. Scramble Service.
18.104.22.168. Connection Errors.
You have attempted of activities on this page.