|
david0620
初级用户
 
积分 27
发帖 13
注册 2006-12-1
状态 离线
|
『楼 主』:
dos下的tcp通信程式請教
使用 LLM 解释/回答一下
我要寫一個Dos連接Windows的通信程式。大概如下:
讀取一個文件內的內容並將此內容信息發送到服務器,並在服務器生成一個內容一樣的文件。
以上要怎麼實現呢?
Dos下要用什麼工具寫程式?Windows下又要用什麼東西寫程式和要怎麼接收?
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?
|
|
2008-12-12 10:21 |
|
|
david0620
初级用户
 
积分 27
发帖 13
注册 2006-12-1
状态 离线
|
|
2008-12-12 11:35 |
|
|
johnsonlam
银牌会员
     阿林
积分 1410
发帖 497
注册 2004-6-28 来自 九龍,香港
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Originally posted by david0620 at 2008-12-12 11:35 AM:
怎麼沒有人回答呢?
1) 沒 有 懂 的 人 在 這
2) 在 這 沒 有 懂 的 人
3) 懂 的 人 不 願 意 回 答
應 該 不 會 是 3 吧
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
|
|
2008-12-12 13:47 |
|
|
david0620
初级用户
 
积分 27
发帖 13
注册 2006-12-1
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
這個應該有人知道,只要給我指條路就可以了啦
1.在DOS下要用什麼編程工具寫Dos下的程式?(TC或Wattcp)
2.在Windows下要用什麼工具寫這個接收的程式?(.net或別的)
3.相互間需要用到什麼東西?
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?
|
|
2008-12-12 14:10 |
|
|
BSL007
新手上路

积分 14
发帖 5
注册 2005-12-15
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
别想了!我已经试过了~!
DOS下的程序丢包太严重了!
Don't think about it! I've already tried it~!
The packet loss of programs under DOS is too serious!
|
|
2008-12-14 20:40 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
DOS联网最好使用成熟的NOVELL或者NetworkClient平台,它们有中断编程接口。
For DOS networking, it's best to use mature NOVELL or NetworkClient platforms, which have interrupt programming interfaces.
|
|
2008-12-15 09:48 |
|
|
zhgwbzhd
高级用户
   
积分 506
发帖 187
注册 2005-12-4
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
用WATTCP编程,在局域网内。使用tcp协议,我认为还是可以的啊。
Programming with WATTCP, within the local area network. Using the TCP protocol, I think it's still okay.
|
|
2008-12-16 22:38 |
|
|
zqlcch
初级用户
 
积分 178
发帖 85
注册 2006-7-6
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
用DSOCK库+packet网络环境就可以了。
Just use the DSOCK library + packet network environment.
|
|
2008-12-17 08:53 |
|
|
tobb133
新手上路

积分 18
发帖 9
注册 2008-9-16
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
dos下用borlanc 3.1
windows下用vc,delphi都可以
开发包用tcpcp或WATTCP
In DOS, use Borland C 3.1; in Windows, you can use VC, Delphi, etc. The development libraries use TCPCP or WATTCP
|
|
2008-12-18 17:58 |
|
|
winson4829
初级用户
 
积分 58
发帖 17
注册 2008-3-2
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
答案是 (3)
如果你的底子夠~~參考 http://www.bgnett.no/~giva/ 內的 Watt-32 Network Tools 下的 Example (內含 Source Code)~~ 幾小時就可以寫出一個基本的 Send /Receive 程式
我在 DJGPP 及 Borland C/C++ 4.5 都用廣泛的用過~~其中的一個應用就如你描述的方式, 在不更改別人既有的程式下, 以TSR(常駐方式), 掃描特定目錄, 以 TCP 上傳檔案.
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.
|
|
2010-2-26 13:32 |
|