Hello Ronaldo,

> yes, error is on TWsocket!
> here is code

I don't see anywere in your code logging of the ErrCode argument in the
TWSocket events! So it is not sure where you get the error 5

I also see you use OnError event of TWSocketServer and use GetLastError
there. Don't use OnError, instead use your own exception blocks at the
places where you eventually expect an exception error.

I see you have a procedure ServerDataAvailable. Is this handler assigned
to the OnDataAvailable of TWSocketServer? If so this is wrong. The
serversocket will not receive data.

LocalClient is assigned in Server.OnClientConnect. That is good if you
use only 1 connection simultanously but if a second connection is
etablished you loose the original reference to it.

I already asked this, but again: witch socket does the close? And as
additional question, when does it close (when sending, receiving etc)?

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to