How to use TIdIOHandlerSocket in Indy Socket Server.

Giganews Newsgroups
Subject: How to use TIdIOHandlerSocket in Indy Socket Server.
Posted by:  schiva (schi…@empal.com)
Date: Mon, 9 Jun 2008

I want to use my TMySocketIOHandler which is inherited from
TIdIOHandlerSocket.

But when i trying to coding below...

----- TCP Server on Connect Event ----
Athread.connection.ioHandler :=
TMysocketIOHandler.create(Athread.connection);

But this code disconnect the clinet program.
It does not work.

anybody know how to use custom TIdIoHanlderSocket in the INDY TCP Server.

My Delphi version 7. Indy is 9.0.18.

Replies