CAsyncSocket

CAsyncSocket socket is based on a third-party library package.

CSocket corresponds wsock32.dll, socket corresponds ws2_32.dll.

Three relationship: socket-> CAsyncSocket-> CSocket

1.CAsyncSocket and CSocket choice

1.1 The former is asynchronous communication, which is the synchronous communication; the former is a non-blocking mode, which is a blocking mode. Further, there is non-blocking asynchronous mode
when connection is also referred to as long, is called synchronous blocking mode short connection.

1.2 CSocket CAsyncSocket on the basis of modifying the Send, Recieve other member functions, a built help you to send and receive buffer polling
cycle into a short connection synchronous mode.

 

Guess you like

Origin www.cnblogs.com/freeboygirl/p/10960927.html