I. Summary
This paper describes the asynchronous implementation based on TCP communication protocol.
Second, the experimental platform
Visual Studio 2010
Principle and common methods of asynchronous communication
3.1 Establishing the connection
Programming | The socket class for the asynchronous. NET Framework is actually the managed code version of the socket service provided by the Winsock32 API. Where the socket class provides a rich set of methods and properties for network traffic, in
The socket class of the. NET Framework is actually the managed code version of the socket service provided by winsock32 API. The socket class provides a rich set of methods and attributes for network communication. In most cases, the socket method
For many beginners, the development of network communication programs, a common phenomenon is that it is difficult to start. Many concepts, such as sync/async (async), blocking (block)/non-blocking (Unblock), and so on, beginners are often confused,
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
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
Note memory when using asynchronous socket
Spike
This is an article I read online, the original address: http://morganchengmo.spaces.live.com/blog/cns! 9950ce918939932e! 3022. Entry
In. net, the memory is hosted by the system, and programmers do
Windows Socket API usage experienceThis article is some of my experiences in MS-windows and HP-UNIX network programming. It is for your reference only. If the socket function mentioned in this article is not specifically described, it refers to the
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.