TCP/IP is the basis for network communication, and TCP/UDP is the kernel of TCP/IP. Socket is the internet programming interface in the applications out of the kernel. Network applications are based on Socket. Windows Sockets API is the interface of network programming of Microsoft Windows. MFC of Visual C provides two Socket classes, CAsyncSocket and CSocket, which encapsulate the Socket functions of Windows. Under the environment of Windows NT,by using VC6.0 the implementing a program of a simple browser of text type can verity how Socket supports the internet programming.%TCP/IP协议是实现网络通信的基础,TCP/UDP协议是TCP/IP的核心。网间网编程接口Socket为核外应用程序的实现提供了界面,网络应用基于它而实现。Windows Sockets API是Microsoft Windows的网络程序设计接口,在Visual C开发工具中,MFC提供的套接字类CAsyncSocket和CSocket封装了Windows的套接字函数。在Windows NT环境下,利用VC6.0,通过实现一个简单的文本方式的浏览器,来说明基于Socket的简单网络应用编程。
展开▼