摘要
文中主要介绍了DOS操作系统和Windows操作系统之间网络通讯的实现方法。在Windows平台下基于VisualC++6.0环境下,利用MFC提供的Winsock类开发客户端程序。在MS-DOS平台下基于Borland C++3.1环境下,利用一个DOS下基于Packet Driver的开发包Wattcp开发服务器端程序。DOS操作系统缺乏类似Winsock的API,所以在该系统下设计基于TCP/IP协议的应用程序时,需要先安装DOS操作系统网卡的Packet Driver驱动,并在DOS下制作Make-file文件,把Wattcp所有的源程序编译、链接成库。采用C/S模式,运用Socket网络编程原理、方法和技巧,开发了基于TCP/IP协议的服务器和客户机通信程序,实现了服务器端与客户端的网络通信。
Mainly introduces the implementation methods of network communication between the DOS operating system and Windows op- erating system. Based on the Visual C + + 6.0 environment at the Windows platform, using Class Winsock provided by MFC develop client program. Based on Borland C+ + 3.1 environment at the DOS platform, using a development Kit - Wattcp to develop server pro- gram,which based on the Packet Driver at DOS platform. DOS operating system lacks Winseck- API similar of Windows so that designing applications based on TCPZIP protocol under the system, you need to install the network adapter driver Packet Driver in DOS operating system,and produced the Makefile in the DOS, put all the source program of Wattcp to compile, link into the library. Adopt the C/ S mode, using the socket network programming principles,methods and techniques, implement the client - server network communication, and develop the server and client communication program which based on the TCP/IP protocol.
出处
《计算机技术与发展》
2010年第4期191-194,共4页
Computer Technology and Development
基金
广东省科技计划攻关项目(2009B010900053)