Lou iOS training zero-Basic Programming

Source: Internet
Author: User

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.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.