IOS development network-HTTP and ios development protocols
IOS development network-HTTP protocol
Note: The apache tomcat server must use port 8080.
I. URL
1. Basic Introduction
The full name of the URL is Uniform Resource Locator (Unified Resource Locator)
You can find the only one resource on the Internet through one URL.
A URL is the address and location of a r
ARP command.C:\> Ping 192.168.1.1... ping output ...C:\> Arp–d *HTTP:The HTTP protocol is the most widely used base protocol today, thanks to many applications that are web-based, easy to implement, and simple to deploy, without the need for additional clients to use the browser. This process begins with requesting the server to transfer the network files.Include a get command from the visible message, and when HTTP sends the initial GET command, TCP
Network protocol in the movie server occupies a very important position, it can be said that if there is no network protocol, the movie server will not function at all. This article briefly introduces several current mainstream network protocols, hoping to provide some help to understand the movie server.
1, ftp: Full
The data link layer has three main purposes:
* Sends and accepts IP data packets for the IP module;
* Send ARP requests to the ARP module and receive ARP responses;
* Send RARP requests and RARP responses to RARP.
The ARP protocol is mainly used to resolve the 32bit IP address to the MAC address (hardware address) corresponding to the 48bit (Ethernet ). The RARP protocol resolves the hardware address to an IP address. The two protocols are at the
Every time you write and design a network communication program, you always have to deal with the problem of customizing a set of application protocols (that is, communication protocols) and then writing corresponding methods to parse the protocols, and provides corresponding interfaces for upper-layer calls. It is eas
resource's header field or read the remote resource's data through the input stream.getInputStream () gets the input stream.Reads the response data from the input stream.Attention:1) If you want to use the input stream to read the contents of the URLConnection response, and also use the output stream to send request parameters, be sure to use the output stream before using the input stream.2) with the help of the URLConnection class, the application can easily exchange information with the spec
-scale network environments. The RIP protocol is used to transmit route information in an AS autonomous system. Route information is updated every 30 seconds. The RIP Protocol provides hop count to measure the route distance, the hop count is the number of routers required for a packet to reach the target. The maximum number of hops supported by RIP is 15.
Application: in Windows, we can enable the "RIP listener" function to listen to RIP messages, so
Network protocol
Application Layer
DHCPDNSFTPGopherHTTPIMAP4IRCNNTP XMPPPOP3 SIPSMTPSNMP SSHTelnet RPCRTCP RTPRTSPSDP SoapGTPStunNTPSSDP More
Transport Layer
TCPUDPTLSDCCP SCTPRSVPPPTP More
Network layer
IP (IPv4IPV6) ·ICMPICMPv6 IGMPIs-isIPSecBGPRIP OSPF ARPRarp More
Data Link Layer
Wi-Fi (IEEE 8
target path next to a neighboring router. Each router is removed and the new data link layer information is added before forwarding.6. Data is transmitted over the Internet, including media and intermediary equipment. The 7.client receives a data link frame that includes data. Handles each layer of protocol headers, and then removes the protocol headers in the reverse order of accession. First, the Ethernet information is processed and removed. The IP protocol information is followed. The next
1. What is the difference between web1.0,web2.0,web3.0?web1.0: Information-seekers and consumers, information created by website operatorsweb2.0: User-created content (Ugc:user generated content, forums, Weibo, video sharing, classified information)web3.0: Users get content on demand, RSS feeds, zaker subscriptions, hot spots today2. What is the difference between Hypertext Markup Language Hyper Text Markup Language (html4,5)?HTML4 If you want to play a video, you must install a video player, su
We all know that computer networks are divided into seven layers, each of which has its own network communication protocol. We can easily understand the concept of network communication protocol. However, it contains many protocols. Here we will summarize several important protocols to help you make a summary. See the
TPC/IP protocol is a Transport layer protocol, which mainly solves how data is transmitted in the network, and HTTP is the application layer protocol, which mainly solves how to wrap the data.Regarding the relationship between TCP/IP and HTTP protocol, the network has a relatively easy to understand introduction:"When we transmit data, we can only use the (Transport Layer) TCP/IP protocol, but in that case,
the address type to be converted, and 0x0800 is the IP address, the length of the following two addresses is 6 and 4 (bytes) for the ethernet address and IP address respectively. The op field is 1, indicating the ARP request, and the OP field is 2, indicating the ARP response.
The process of the Address Resolution Protocol is as follows:
Iv. RARP (Reverse Address Resolution Protocol)
The opposite of ARP is mainly used to obtain the IP address of a diskless workstation, as shown in.
5. ICMP
visit; we can also find the nearest restaurant. If we drive out, the wireless facilities installed in our car will provide real-time location technology, it also plays a role in navigation and security protection.
In addition, in the near future, appliance manufacturers will develop a new generation of information appliances, that is, apart from computers, you can also assign IP addresses to household appliances such as televisions, refrigerators, mi
This article describes the first example: five simple TCP Network service protocols, including Echo (RFC 862), Discard (RFC 863), Chargen (RFC 864), Daytime (RFC 867), Time (RFC 868), and time The client of the Protocol. The functions of each agreement are as follows:
* Discard-discard all data received;
* Daytime-service-side accept connection, send the current time as a string, and then actively disconn
message transfer process that ultimately completes the delivery of the message data to one or more mailboxes.
Rcptto:
Identifies the addresses of individual message recipients
DATA
Receiving SMTP will treat the behavior that follows as mail data to
.
to identify the end of the data.
REST
exit/Reset the current message transfer
NOOP
requires the receive SMTP to do only the OK answer. (For testing)
files and their protocols.
Note: Here said that send, receive file is standing in the position of the client said, when the client sent the file, for the server to collect, is to receive files.
1.2 Receiving files
The receiving file is actually exactly the same as sending the file, except that the client writes data to the network stream or the server writes the data to the
1 encapsulation process when data enters the protocol stack650) this.width=650; "title=" Fz.png "alt=" wkiom1v_36hx7bcuaadxid3fsmq859.jpg "src=" http://s3.51cto.com/wyfs02/M02/ 6e/93/wkiom1v_36hx7bcuaadxid3fsmq859.jpg "/>2 Layer four network model for TCP/IP protocol:650) this.width=650; "title=" 44444.png "alt=" wkiol1v_3-qz4n2_aac4dkekcaw688.jpg "src=" http://s3.51cto.com/wyfs02/ M02/6e/8e/wkiol1v_3-qz4n2_aac4dkekcaw688.jpg "/>This article is from t
check data from captured files on an active network or disk. Users can view captured data interactively and deeply explore the details of the data packets you need to understand. This software has several features, including rich display filtering language and the ability to view structured data streams of a TCP session. It also supports a large number of protocols and media types, including a console vers
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.