I learned how to use Python Socket to develop concurrent FTP servers in one hour !!
What is socket?
What is socket? socket is also called socket. It is used to describe IP addresses and ports and is a communication chain handle. Applications
The introduction of--socket is to solve the problem of interprocess communication between different computers
1.socket Relationship to the process
1. The relationship between the socket and the process: the socket is used to exchange information
The introduction of--socket is to solve the problem of interprocess communication between different computers
1.socket Relationship to the process
1. The relationship between the socket and the process: the socket is used to exchange information
Socket (socket)
First look at the definition:
typedef unsigned int u_int;
typedef u_int SOCKET;
Socket is equivalent to the network communication at both ends of the socket, as long as the other side of the socket and their sockets have a
Write in preparation:Socket communication in iOS is also very common, I have been learning Telegram this open source project, Telegram is on the basis of the socket to do instant messaging, this is believed to understand this open source project
During this period, the socket connection cannot be detected and exited due to network disconnection or long connection time.
Technical Background: the target machine runs on vxworks, while the pc can connect to the target board through serial
HTTP protocol: Simple Object Access Protocol, corresponding to the application layer, HTTP protocol is based on TCP connection
TCP Protocol: Corresponds to the transport layer
IP Protocol: Corresponds to the network layer
TCP/IP is a Transport
1. TCP Connection
The mobile phone can use the internet function because the mobile phone bottom layer implements the TCP/IP protocol, which enables the mobile terminal to establish a TCP connection through the wireless network. The TCP protocol can
The user interface for the Linux socket. This BSD-compatible socket is a unified interface between the user process and the Kernel network protocol stack, each protocol module belonging to a different protocol family, such as Pf_inet, Pf_ipx,
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.