传输文件&消息使用Internet从一个系统传递到远程系统

时间:2012-10-18 12:44:43

标签: delphi indy10

哪一个(TCP / UDP)最好使用Internet从客户端发送文件到远程服务器?即哪一个是快速的&可靠的我的以下要求。

我基本上有两个要求

1. Sending Files from Client to Server (Daily Once)
2. In Client system running one software, its having different product information, 
   latest packet Time, Product Status, etc . 
   This information is updated every one second. 
   My problem is, To know the Client status at server.

 I am not able to decided which design is best of my requirement. They are
   A.Using TIdTCPClient & TIdTCPServer 
   B.Using TIdTCPClient & TIdCmdTCPServer
   C.Using TIdCmdClient & TIdTCPServer
   D.Using TIdCmdClient & TIdCMDTCPServer

请指导我哪种设计最好&如何用例子来实现它。

1 个答案:

答案 0 :(得分:0)

TCP / IP速度较慢,但​​它确保您不会丢失任何数据包而不在应用程序中实现该数据包

UDP更快,但您无法保证数据包将到达,您必须实施某种确认

在您的情况下,我认为TCP是最好的,TIdTCCPerver的TIdTCPClient可以解决问题。

如果您遇到问题,请发布一些代码。

相关问题