China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 20:50
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » How to make a DOS client like this View 1,178 Replies 2
Original Poster Posted 2006-05-31 14:02 ·  美国 ATT用户
新手上路
Credits 8
Posts 2
Joined 2006-05-31 09:23
20-year member
UID 56295
Gender Male
Status Offline
I’m a DOS newbie.
Because of work, I need a DOS utility like this: it can broadcast on the LAN, so the Windows server side can collect the corresponding information, this computer name and IP address, and then the server side sends a command,
and the client side will execute that command, for example ping.
How can this be implemented? Please give me some pointers, and if any expert has related technical documentation, share a copy, I’d be very grateful.
Floor 2 Posted 2006-06-01 19:05 ·  中国 上海 杨浦区 电信
高级用户
★★
Credits 653
Posts 252
Joined 2006-04-16 19:48
20-year member
UID 53939
Status Offline
First you need an NDIS environment, for example MS Client. Then you need the DOS driver for the network card.

After all that is set up, you have two choices:

■ The most “orthodox” approach: use the TCP/IP protocol stack that comes with eRTOS—Wattcp. The wattcp source code is provided free, but the documentation has to be bought. However, that documentation can be downloaded on this forum, search for it yourself.

The advantage of this solution is that it only needs a 16-bit x86 environment, does not require protected mode, and does not need a 386 or higher CPU; the disadvantage is also obvious: eRTOS provides a completely new API that is not compatible with any OS, development and debugging are difficult, and eRTOS has poor DPMI support.

■ The most convenient method: under Windows, use standard socket and Win32 API to develop and debug your application, then use HX DOS Extender and other Win32 extensions to make the application run directly under DOS.

HX’s TCP/IP stack itself is actually also wrapped from wattcp, so the stability of the protocol stack is not a problem. The advantages of this solution are obvious: you can use a familiar development environment and Win32API to develop, test, and debug the application, then directly make it run under DOS. The disadvantage is that the target platform needs protected mode support (at least a 386-class CPU).
Floor 3 Posted 2006-06-05 11:17 ·  美国 ATT用户
新手上路
Credits 8
Posts 2
Joined 2006-05-31 09:23
20-year member
UID 56295
Gender Male
Status Offline
Mm, thank you very much, asbai, for your help. I have an idea now.
Forum Jump: