Week 9 Study Notes
Chapter 13 Learning Summary
The URl class included in java.net is an abstraction of the Uniform Resource Locator. The application program that uses URl to create an object is called a client program. The URl object of the client program can call a
InputStream opeanStream()
method to return an input stream, which points to the URL object. The contained resources can be read from the server to the client through the input stream.- A network socket is a connected communication given to the TCP protocol. A socket connection is the connection between the client's socket object and the server's socket object through input streams and output streams. The server establishes the
ServerSocket
object, theServersocket
object is responsible for waiting for the client request to establish a socket connection, and the client establishessocket
the object to issue a socket connection request to the server. The communication given to Upd is different from TCP-based communication. UDP-based information transfer is faster, but it does not provide reliability guarantees.
code hosting
learning progress bar
Lines of code (added/accumulated) | Blog volume (new/cumulative) | Study time (added/accumulated) | important growth | |
---|---|---|---|---|
Target | 5000 lines | 30 articles | 400 hours | |
the first week | 30/30 | 1/1 | 8/8 | |
the second week | 300/330 | 2/3 | 8/16 | |
The third week | 636/936 | 1/4 | 8/24 | |
the fourth week | 555/1491 | 2/6 | 10/34 | |
fifth week | 874/2365 | 1/7 | 8/42 | |
Week 6 | 1048/2365 | 2/9 | 10/52 | |
Week 7 | 1516/3881 | 1/10 | 14/66 | |
eighth week | 1192/5073 | 3/13 | 8/74 | |
eighth week | 1009/6082 | 1/14 | 10/84 |