Without a basic understanding of computer programming, iOS development is inseparable from software. In recent years, iOS development talents have been increasingly favored by major enterprises and many interested parties have also participated in the development, to join the iOS Training Course, you must start from the basics. What is network programming?
Network programming is used to implement inter-process communication through sockets. Windows provides network-based programming, namely, socket, winsock, and Winpcap is also a convenient tool.
The main task of network programming is to assemble packets on the sending end through the prescribed protocol, and parse the packets at the receiving end according to the prescribed protocol to extract the corresponding information, achieve the purpose of communication! The most important thing in the middle is Data Packet Assembly, data packet filtering, data packet capture, data packet analysis, and then some processing!
Code, development tools, databases, server setup, and web design are all used.
Network Model: Describes the network structure and working principles OSI reference model: layer-7 Internet model: layer-4 network protocol: rules for data exchange at the specified layer. Network Layer Protocol of the Internet: IP protocol; DNS protocol (secondary protocol) Transport Layer Protocol of the Internet: TCP protocol; UDP protocol.
SocketSocket (Sockets): an interface for applications and network protocols. Extends ockets: interfaces of Java applications and network protocols. It defines several classes. Java applications use these classes to inherit network protocols and implement network communication. TCPSockets: use TCP to implement reliable network communication. UDPSockets: Use UDP protocol for efficient network communication.
Data PacketsData packets are an important concept of network communication programming. They are also called Assembly packages. They are a collection of data that is integrated at the application layer data or packets according to certain predefined rules, the actual operations include group package (package), packet transfer, and unpackage. A group package (Package) means to combine scattered data or packets according to the protocol. For example, in C ++ programming, A new data type is often defined to store the structure of data packets. Data packet transmission refers to the electrical and physical transmission of data packets. Unpacking means that the receiving end parses the received data to obtain useful information and data. Data packets are often transmitted through sockets. Let's talk about it. The content is slowly broken down. It's impossible to eat a fat guy. If you are interested, you can take a little bit of it to help you digest it.