|Subject:||Re: How to use TIdIOHandlerSocket in Indy Socket Server.|
|Posted by:||Remy Lebeau \(TeamB\) (firstname.lastname@example.org)|
|Date:||Tue, 17 Jun 2008|
"schiva" <schi…@empal.com> wrote in message
> I want to use my TMySocketIOHandler which is inherited from
To do that, you will have to derive a new class from TIdServerIOHandler,
override its Accept() method to return an instance of TMySocketIOHandler,
and then assign the TIdServerIOHandler to the server's IOHandler property
before activating the server.
> But when i trying to coding below...
> But this code disconnect the clinet program.
As it should be, because you are discarding the previous IOHandler that the
connection was bound to. You can't change an active IOHandler and still be
able to maintain its connection.
How to use TIdIOHandlerSocket in Indy Socket Server. posted by schiva on Mon, 9 Jun 2008