Basic Winsock knowledge
We do not plan to systematically introduce socket or Winsock knowledge here. First, we will introduce the Winsock API function, introduce the concept of blocking/non-blocking, and then introduce the use of socket.
Winsock
Directory (?) [-]
Conceptual understanding
Five types of IO models under Linux
Blocking IO Model
Non-blocking IO model
IO multiplexing Model
Signal-driven IO
Asynchronous IO Model
Comparison of an IO
This article will introduce you to an article on the concepts of PHP-Socket-blocking and non-blocking, synchronization and Asynchronization. I hope this article will help you. This article will introduce you to an article on the concepts of
1. Conceptual understanding
In the case of network programming, we often see synchronous (Sync)/asynchronous (Async), blocking (block)/non-blocking (Unblock) Four ways to invoke: Sync:
synchronization is
when a
Concept understanding
Five I/O models in Linux
Blocking Io Model
Non-blocking Io Model
Io Reuse Model
Signal-driven I/O
Asynchronous Io Model
Comparison of five I/O models
Introduction to
Blocking functions: Connect, Accept,send/recv/sendto/recvfrom and other read-write functions.Functions that do not block: Bind, Listen,socket, closesocket.The Linux network communication model is:Blocking IO Model (synchronous), non-blocking IO
Blocking Mode
Windows Socket performs I/O operations in both blocking and non-blocking modes. In blocking mode, the operation function to be executed waits until the I/O operation is completed without returning immediately. The thread where the
The first kind of explanation:
Take the TCP transmission as an example in the socket transfer. Suppose Server a client B communicates. First, you need to establish a listening thread on machine A. Listening to a certain port, then B machine can send
1. Conceptual understanding In network programming, we often see synchronous (sync)/async (Async), blocking (block)/non-blocking (Unblock) Four call modes:Sync:The so-called synchronization is that when a function call is made, the call does not
What is socket
A socket interface is an API of a TCP/IP network. A socket interface defines many functions or routines. programmers can use it to develop applications on a TCP/IP network. To learn TCP/IP network programming on the internet, you
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.