Interprocess Communication In UNIX and Windows NT

Scott M. Lewandowski · 1997

ions Microsoft Foundation Classes (MFC) are widely used for Windows software development today. It is no surprise that there are classes designed specifically to accommodate the use of sockets. There are two classes offered by MFC for sockets: . CAsyncSocket. This class is a thin wrapper around the WinSock v2.2 API. It provides asynchronous communication that relies on WSAAsyncSelect() heavily. All socket event notifications are handled internally by a CSocketWnd instance so the programmer does not need to deal with them. The events to be monitored are indicated using AsyncSelect(). . CSocket. The CSocket class is very similar to CAsyncSocket but it provides the illusion of synchronous communication. In other words, the functions block and do not return until the operation completes, although in reality asynchronous communication is still used. These classes are significant to MFC programmers because in addition to encapsulating much of the busywork of using sockets into the socket ...

Read the paper · More papers on PaperTik