Home > Software engineering >  What are the vc network programming method
What are the vc network programming method

Time:09-18

What are vc + + network programming method
Useful to find on the Internet, this kind of network programming, useful to the kind of network programming, a lot of kinds, is there a way to unify, what is the difference between each method, have what characteristics,

CodePudding user response:

Two broad categories, TCP/IP and udp

CodePudding user response:

The SOCKET
CSocket
CAsyncSocket
Cclient
CVC_TCP_ServerDlg
What is the characteristic and difference between each

CodePudding user response:


There is no difference, use familiar knew just packaging is not the same

CodePudding user response:

MFC programming class has two kinds of the Internet:

CodePudding user response:

The
reference 4 floor xqlu2007 reply:
MFC programming class has two kinds of the Internet:


The first major categories: encapsulation level is higher, faster, but the lack of flexibility,
The second categories: encapsulation level is low, is only for Windows itself the socket functions of MFC encapsulation, but high flexibility,

Another method is the direct use of Windows socket programming (i.e., do not use MFC class to programming), to write a lot of code, need higher programming ability, demand are familiar with many network underlying concepts

CodePudding user response:

Boost: : an asio, asynchronous mode is similar to Windows callback function

CodePudding user response:

MFC CSocket, CSocket cannot across threads, then the thread is created in CSocket, create interface thread, the interface thread is created in CSocket, the main thread and the CSocket thread can be data transfer through the message, I do, no problem,

CodePudding user response:

Packaging is not the same
  • Related