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 00:07
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Ask about TCP communication programs under DOS View 2,654 Replies 9
Original Poster Posted 2008-12-12 10:21 ·  中国 香港 环球全域电讯国际互联节点
初级用户
Credits 27
Posts 13
Joined 2006-12-01 02:25
19-year member
UID 72213
Gender Male
Status Offline
I want to write a communication program that connects DOS to Windows.大概 as follows:
Read the content in a file and send this content information to the server, and generate a file with the same content on the server.
How to implement the above?
What tools are needed to write the program under DOS? What things are needed to write the program under Windows and how to receive it?
Floor 2 Posted 2008-12-12 11:35 ·  中国 香港 环球全域电讯国际互联节点
初级用户
Credits 27
Posts 13
Joined 2006-12-01 02:25
19-year member
UID 72213
Gender Male
Status Offline
Why hasn't anyone answered?
Floor 3 Posted 2008-12-12 13:47 ·  中国 香港
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
22-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by david0620 at 2008-12-12 11:35 AM:
Why is there no one answering?


1) There are no people who understand here
2) There are no people who understand here
3) People who understand are not willing to answer

It shouldn't be 3, right
我 的 網 站 - http://optimizr.dyndns.org
Floor 4 Posted 2008-12-12 14:10 ·  中国 香港 环球全域电讯国际互联节点
初级用户
Credits 27
Posts 13
Joined 2006-12-01 02:25
19-year member
UID 72213
Gender Male
Status Offline
This should be known by someone, just give me a way.
1. What programming tools are needed to write DOS programs under DOS? (TC or Wattcp)
2. What tools are needed to write this receiving program under Windows? (.net or others)
3. What things are needed between each other?
Floor 5 Posted 2008-12-14 20:40 ·  中国 广西 柳州 融安县 电信
新手上路
Credits 14
Posts 5
Joined 2005-12-15 15:32
20-year member
UID 47200
Status Offline
Don't think about it! I've already tried it~!
The packet loss of programs under DOS is too serious!
Floor 6 Posted 2008-12-15 09:48 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
19-year member
UID 94024
Gender Male
Status Offline
For DOS networking, it's best to use mature NOVELL or NetworkClient platforms, which have interrupt programming interfaces.
Floor 7 Posted 2008-12-16 22:38 ·  中国 北京 昌平区 联通
高级用户
★★
Credits 506
Posts 187
Joined 2005-12-04 22:41
20-year member
UID 46500
Gender Male
Status Offline
Programming with WATTCP, within the local area network. Using the TCP protocol, I think it's still okay.
Floor 8 Posted 2008-12-17 08:53 ·  中国 福建 宁德 电信
初级用户
★★
Credits 178
Posts 85
Joined 2006-07-06 15:25
20-year member
UID 58125
Status Offline
Just use the DSOCK library + packet network environment.
Floor 9 Posted 2008-12-18 17:58 ·  中国 北京 鹏博士BGP
新手上路
Credits 18
Posts 9
Joined 2008-09-16 17:28
17-year member
UID 125788
Gender Male
Status Offline
In DOS, use Borland C 3.1; in Windows, you can use VC, Delphi, etc. The development libraries use TCPCP or WATTCP
Floor 10 Posted 2010-02-26 13:32 ·  中国 台湾 中华电信(HiNet)数据中心
初级用户
Credits 68
Posts 17
Joined 2008-03-02 14:38
18-year member
UID 111866
Gender Male
Status Offline
The answer is (3)
If your foundation is sufficient~~Refer to the Example (including Source Code) under Watt-32 Network Tools in http://www.bgnett.no/~giva/~~You can write a basic Send/Receive program in a few hours
I have used it extensively in DJGPP and Borland C/C++ 4.5~~One of the applications is the way you described, as a TSR (resident mode), scanning a specific directory, and uploading files over TCP.
Forum Jump: