Description: Delphi:Delphi环境下基于idtcpserver断开与连接客户端,当客户端主动与服务端断开时,idtcpserver事件Disconnect能够接到消息,当客户端主动与服务端连接时,idtcpserver事件Connect能够接到消息。但是存在问题:当服务端断开客户端连接数,IdTCPClient事件Disconnected接不到到消息,只有客户端主动与服务端断开时IdTCPClient事件Disconnected才接到消息,烦请高人们支招。
实例中还涉及到idtcpserver最大连接数在程序中如何控制的解决方法。
-Delphi: Delphi environment based idtcpserver disconnect the client when the client is disconnected from the server-side initiative, idtcpserver event Disconnect able to receive the message, when the client and server to connect initiative, idtcpserver Connect event messages can be received . But there is a problem: When the server is disconnected client connections, IdTCPClient event Disconnected not receive the message, only the client and server is disconnected when the initiative IdTCPClient event Disconnected before receiving the news, I beg you high people Weapon.
Example also involves solutions idtcpserver maximum number of connections in the program how to control. Platform: |
Size: 14336 |
Author:3KC5NC1 |
Hits:
Description: Delphi 基于IdTcpServer和IdTcpClient通讯实例源码(Delphi based on IdTcpServer and IdTcpClient communication example source code) Platform: |
Size: 22528 |
Author:胡施 |
Hits: