Objectinputstream/objectouputstream://Serialization class
Java.io.Serializable://Serialization interface
Transient://temporary, prevent serialization process.
Protocal:------------rule. Data format.
http: (application):-------------Hyper Text Transfer protocal Hypertext Transfer Protocol.
FTP (Application layer):-------------file transfer protocal.
TCP------------Transfer Control protocal, transmission protocol.
IP------------Internet protocal, network protocol.
Seven-layer protocol------------
OSI------------Open System Interconnect, development systems interconnect.
Physical layer: //RJ45
Data Link layer: //fddi
Network layer: //ip (Internet protocal)
Transport Layer: //tcp UDP
TCP: Connection-oriented, secure protocol, with acknowledgement (receipt), and orderly data.
TCP establishes a three-time handshake for a connection: two authentication processes.
UDP: No connection, no security, no fixed route.
callback layer: //rpc,remote procedure Call, remote procedure invocation.
Presentation layer: //IS encrypted
Application layer: //ftp,http https,smtp (Simple Mail transfer protocal)
View IP and Mac Physical Address:---------------------C:\>cmd c:\>ipconfig/all
Port--------------------ports.
0 ~ 65535//
0 ~ 1023//Reserved port
22//
80//
3306//mysql
1521//oracle
1433//sqlserver
0.0.0.0//Pass with IP address.
Ip:port
192.168.231.100:3306:0.0.0.0//3306
192.168.231.101:3306
View Port Usage-----------------
Nestat-ano
InetAddress://IP only, no port
Inetsocketaddress://inetaddress + port
DNS---------
Domain name resolution.
localhost//127.0.0.1
# Copyright (c) 1993-2009 Microsoft Corp.
C:\Windows\System32\drivers\etc\hosts---------------------------------------
127.0.0.1 localhost 192.168.231.100 s100 192.168.231.101 s101 192.168.231.102 s102 192.168.231.103 s103 192.168 .231.104 s104 192.168.231.105 s105 192.168.231.106 s106 192.168.231.107 s107 127.0.0.1 vinci.ie.sogou.com
windows kills processes.---------------------
1.taskkill/? View Help
2.taskkill/f/pid 1234//f: Forced PID: Process ID
3.taskkill/f/pid a/pid 2//Kill multiple processes
4.taskkill/f/im notepad.exe/t//Kill process tree, use image name
Build a Tomcat Web server-----------------------
1. Download the tomcat zip file. Apache-tomcat-7.0.72.zip
2. Unzip.
3. Start the Tomcat server ${tomcat_home}\bin\startup.bat
4. View the Tomcat server listening port 8080 Netstat-ano
5. Open the Web browser http://localhost:8080/
4. Stop server A.ctrl + C B.${tomcat_home}\bin\shutdown.bat
5. Publish the resource on the server. Copy the file (clip) to ${tomcat_home}\webapps\root\.
6. Access resources on the Tomcat server through a browser. Http://locahost:9090/111.txt
Url:uniform Resource Locator-----------------------------
Uniform Resource Locator.
Schema://domainname:port/path?querystring
http://www.baidu.com/
Http://192.168.21.34:9090/ziling.mp3
URLConnection conn = url.openconnection ()//Open connection
Conn.getcontentlength ()//Get resource size
Conn.getcontenttype ()//Get resource type
Uri:uniform Resource Identifier--------------------------------
The Uniform Resource Identifier. mailto
Create a TCP/IP monitor in eclipse. ------------------------------
Eclipse--Windows--preferences, Run/debug-->TCP/IP Monitor
Javase Network Programming