1

インターネットを使用してクライアントからリモート サーバーにファイルを送信するのに最適な (TCP/UDP) はどれですか? つまり、次の要件のうち、高速で信頼できるのはどれですか。

基本的に2つの要件があります

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

どのデザインが最適で、例を使用して実装する方法を教えてください。

4

1 に答える 1

0

TCP/IP は低速で​​すが、アプリケーションに実装しなくてもパケットが失われないことが保証されます

UDPは高速ですが、パケットが到着するという保証はなく、何らかの確認を実装する必要があります

あなたの状況では、TCPが最適であり、 TIdTCPServer を使用した TIdTCPClient がうまくいくと思います。

行き詰まった場合は、いくつかのコードを投稿してください。

于 2012-10-18T12:49:48.167 に答える