------------------------ Only an unhappy axe , There is no wood that cannot be split ; Only the unexpected , There's nothing you can't do . There's always a way to do it , There's always a reason not to !
The content of this stage
Network programming Concurrent programming database There could be a front end
C\S framework (****) client server
Software C\S framework : client \ Server architecture : JD.COM , TaoBao , Today's headline ,qq, WeChat .....
B\S framework : browser (browser)\ Server side >>> Unified interface
Hardware C\S framework : The printer .
The whole process of network communication (**)
Ethernet cable : Transmitting electrical signals
A hub : Connect all network devices connected to the hub
Switch : Upgraded hub
network card : Receiving electrical signals
MAC Address : Physical address : 8C-EC-4B-88-B9-C9 # The first three manufacturer numbers , The last three production serial numbers
radio broadcast :
Broadcast storm : Network congestion , Information is not secure
Ip Address :
IPv4 Address : 192.168.15.46 #4 It's a dot decimal system
effect : Divide the broadcast area
Ipv4:192.168.15.0-192.168.15.255 # Eight bit binary 256 Computers
192.168.0.0 - 192.168.255.255
Our class ip Address segment :192.168.15.0 -- 192.168.15.255
DHCP: Automatically assigned IP Address
Arp surface : preserved ip Address and mac Address correspondence
Arp agreement : adopt ip The address for mac Address
Subnet mask : Calculate two ip Whether the address belongs to the same network segment :
Source ip Address :192.168.15.46
Target ip:192.168.16.30 #192.168.16.0
Router : Forward a message
Routing protocol : Calculate the optimal route for forwarding messages
Port number :0 - 65535, Make sure that the application on your computer
Ip Address + port = Identify an application on a computer
First time to know socket (*****)
Look at the code file
# # --------------[ Server side ]--------------
# Created a socket object
server = socket.socket() # Create a mobile phone
ip_port = ('192.168.15.113',8001) # Created a phone card
# binding IP Address and port
server.bind(ip_port) # Plug in the phone card
# monitor IP Address and port server.listen() # Turn it on
# Waiting for a link from the client
conn, addr = server.accept() # Waiting for someone to call me , Block up # receive messages
from_client_msg = conn.recv(1024) #1024 For message size , Company B,MB = 1024KB,1KB = 1024B
# The message received is bytes type , Need to be converted to a string
from_client_msg = from_client_msg.decode('utf-8')
print(from_client_msg) conn.send(' Dead man , Ten points '.encode('utf-8'))
# Close links
server.close() # print(conn)
# # --------------[ client ]--------------
client = socket.socket() server_ip_port = ('192.168.15.113',8001) # Link server
client.connect(server_ip_port) # Send a message
client.send(' Do you want to have an appointment? '.encode('utf-8')) #send The message must be byte type from_server_msg = client.recv(1024) # Block up , Waiting to receive message
from_server_msg = from_server_msg.decode('utf-8')
- Linux Server installation ,DNS The server （ 3、 ... and ）, The configuration of positive and negative solution regions
One . General structure DNS There's only one server " real " Configuration file for , namely /etc/named.conf . Other configuration files are expanded based on this configuration . Each domain requires two configuration files , That is, the positive solution file and the negative solution file . ...
- The way for architects to grow 6.6 DNS Server setup （ Build enterprise class DNS）
Click to return to the path of architect growth The way for architects to grow 6.6 DNS Server setup ( Build enterprise class DNS) use LVS-DR Mode load balancing , many IDC, Multiple sets DNS colony , adopt master-slave Technical assurance dns Consistency of configuration . 1 ...
- The way for architects to grow 6.5 DNS Server setup （ Add records 、 Load balancing 、DNS View ）
Click to return to the path of architect growth The way for architects to grow 6.5 DNS Server setup ( Add records . Load balancing .DNS View ) Deployment master DNS : Click on Deployment from DNS : Click on 1. add to A Record .CNAME Record .MX Record .PTR Record ...
- The way for architects to grow 6.4 DNS Server setup （ The deployment of master-slave DNS）
Click to return to the path of architect growth The way for architects to grow 6.3 DNS Server setup ( The deployment of master-slave DNS) Deployment master DNS : Click on Deployment from DNS : Following steps 1. And master DNS equally , install bind yum -y install ...
- The way for architects to grow 6.3 DNS Server setup （ Deployment of single station DNS）
Click to return to the path of architect growth The way for architects to grow 6.3 DNS Server setup ( Deployment of single station DNS) 1. install bind yum -y install bind-utils bind bind-devel bind-chr ...
- IP Address , Subnet mask , The default gateway ,DNS Server knowledge （ turn ）
from :http://www.cnblogs.com/JuneWang/p/3917697.html For further study TCP/IP agreement , I've read a lot of relevant materials recently , The records are as follows , For later use and convenience ...
- IP Address , Subnet mask , The default gateway ,DNS Server details
For further study TCP/IP agreement , I've read a lot of relevant materials recently , The records are as follows , For later use and convenience : IP Address , Subnet mask , The default gateway ,DNS What does server mean ? ( One ) Problem analysis 001. ask : ...
- computer network : IP Address , Subnet mask , The default gateway ,DNS Server details
Wedge : With Windows In the system IP The address setting interface is for reference ( Pictured 1), IP Address , Subnet mask , The default gateway and DNS The server , What do these mean ? Study IP Address related knowledge will also encounter network address , Broadcast address , Subnet, etc ...
- Linux Build under the system DNS The server ——DNS Principle summary
2017-01-07 Arrangement DNS principle Domain name to IP Address resolution process IP Reverse domain name resolution process from address to domain name Caught analysis DNS Message and specific parsing process DNS Server setup and configuration This is also the year when the blogger attended the school recruitment ...
- Android The realization of ViewPagerIndicator
PS: I've been busy with learning tasks recently , There has been no time to blog . Today, Saturday , Finally, there's time . Learning tasks : 1. Build your own ViewPagerIndicator I've been assigned a lot of learning tasks recently , I feel that the boss is still very good , Give Way ...
- WPF error : The name... Does not exist in the current context “InitializeComponent”
When modifying a View For the name of the VCFCView.xaml When , Be sure to remember inside x:Class It should also be revised to XXXX.VCFCView, Otherwise, a mistake will be reported ( Figure 3 ) The name... Does not exist in the current context "Initiali ...
- Team Foundation Server 2015（Update 1） Integrate SharePoint Server 2013
since TFS 2008 Start ,TFS It provides SharePoint Server The integration function of , Through years of research and development and improvement , At present, Microsoft has realized the perfect integration between the two server products . By integrating the two ,TFS The server is greatly improved and expanded ...
- CentOS install JAVA after JAVA The wrong version
Use today CentOS install JDK, I found that after the installation , Input java Command to verify that the installation is successful , appear Usage: gij [OPTION] ... CLASS [ARGS] ... to i ...
- Tomcat Of JVM Optimize
One .JVM Manage segment classification 1. Threads share memory Method area : Storage jvm Loaded class. Constant . Static variables . Timely compiler compiled code, etc java Pile up : Storage java All object instances . Array etc. 2. Thread private memory Program count register ...
- scala Basic language learning 11
Implicit conversion Use implicit conversions to enhance the functionality of existing types - Decorative patterns similar to design patterns
- Analysis of scope chain –JS One of the basic cores
JS Scope in , As we all know , It is divided into global scope and local scope , There is no block-level scope , It sounds very simple , But whether the scope can have an in-depth understanding , about JS The success rate of code logic ,BUG The ability to solve , And whether you can write better code ...
- WebService Development and application
WebService It runs on the server ( Generally placed on the information server ) Let the client call . Here are two simple examples 1. Develop your own server and call it yourself (vs2010) 1). menu :“ newly build - project ”, Select in the open form , as follows ...
- jSP Of 3 There are three ways to realize it radio ,checkBox,select The default selection for .
jSP Of 3 There are three ways to realize it radio ,checkBox,select The default selection for . With radiao For example : The first way : stay jsp Use in java Script , This is the most direct way , But there are too many scripts , Not easy to maintain <%Stri ...
- MyEclipse— How to be in MyEclipse Created in servlet3.0
servlet3.0 With Java EE6 The specifications are published together , So how to MyEclipse Created in 3.0 Version of servlet Well ? 1. start-up MyEclipse. Get the picture below : 2. Click on the image above "File" ...