Description: 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.
To Search:
File list (Check if you may need any files):
Code\delphi\pudn\upandload\DATA\Delphi_424638\Delphi_424638\idtcpserver断开与连接客户端\idtcpserver的最大连接数在程序中如何控制 .txt
....\......\....\.........\....\.............\.............\rd.txt
....\......\....\.........\....\.............\.............\idtcpserver断开与连接客户端\说明.txt
....\......\....\.........\....\.............\.............\...........................\服务端\Project1.cfg
....\......\....\.........\....\.............\.............\...........................\客户端\Project1.cfg
....\......\....\.........\....\.............\.............\...........................\......\Unit1.dcu
....\......\....\.........\....\.............\.............\...........................\服务端\Unit1.dcu
....\......\....\.........\....\.............\.............\...........................\......\Unit1.ddp
....\......\....\.........\....\.............\.............\...........................\客户端\Unit1.ddp
....\......\....\.........\....\.............\.............\...........................\......\Unit1.dfm
....\......\....\.........\....\.............\.............\...........................\服务端\Unit1.dfm
....\......\....\.........\....\.............\.............\...........................\......\Project1.dof
....\......\....\.........\....\.............\.............\...........................\客户端\Project1.dof
....\......\....\.........\....\.............\.............\...........................\服务端\Project1.dpr
....\......\....\.........\....\.............\.............\...........................\客户端\Project1.dpr
....\......\....\.........\....\.............\.............\...........................\......\Unit1.pas
....\......\....\.........\....\.............\.............\...........................\服务端\Unit1.pas
....\......\....\.........\....\.............\.............\...........................\......\Project1.res
....\......\....\.........\....\.............\.............\...........................\客户端\Project1.res
....\......\....\.........\....\.............\.............\...........................\服务端
....\......\....\.........\....\.............\.............\...........................\客户端
....\......\....\.........\....\.............\.............\idtcpserver断开与连接客户端