Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread {Dark_Ducke}
I could not use the component and WSocketServer WSocketThrdServer not know how to use the event OnDataAvailable examples that have the error when the POS Terminal (Client) connects to the server, he closes the connection immediately and then not process the data .. . I saw nothing that works

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread Angus Robertson - Magenta Systems Ltd
I could not use the component and WSocketServer WSocketThrdServer not know how to use the event OnDataAvailable examples that have The SocketServer demo is OverbyteIcsTcpSrv.dpr, ThreadServer is OverbyteIcsThrdSrvV3.dpr. You can also try TMagIpLog from:

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread {Dark_Ducke}
Hello, I am using the example OverbyteIcsThrdSrvV3.dpr plus what happens is that the wind ClientDisconnect is called before processing the received data, and so the connection is lost and I can not communicate with the client, it returned me the error 10053 as log below: TcpSrv (c) 2005-2010 by

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread François Piette
Hello, I am using the example OverbyteIcsThrdSrvV3.dpr plus what happens is that the wind ClientDisconnect is called before processing the received data, and so the connection is lost and I can not communicate with the client, it returned me the error 10053 as log below: TcpSrv (c) 2005-2010

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread {Dark_Ducke}
I'm using TCP for communication, I do not have access to the client source to check, plus it works normally with INDY, and ISC component WSocket only with WSocketServer WSocketThrdServer and that this problem occurs, it takes is a message exchange (string) between client and server with multiple

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread François Piette
WSocket only with WSocketServer WSocketThrdServer and that this problem occurs, it takes is a message exchange (string) between client and server with multiple clients connected simultaneously, the problem with the component WSocket that is working is that if a customer taking disconnect

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread {Dark_Ducke}
Thank you, you are helping me a lot, the client connects makes the request and disconnects, does not keep the connection active for over 20s, this way I will continue using TWSocket and I will check the time of the last activity of each client connected and disconnect case has passed the

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread {Dark_Ducke}
How to implement the time of the last action on the event and then check OnDataAvailable? 2013/4/30 {Dark_Ducke} darkdu...@gmail.com Thank you, you are helping me a lot, the client connects makes the request and disconnects, does not keep the connection active for over 20s, this way I will

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread Angus Robertson - Magenta Systems Ltd
Hello, I am using the example OverbyteIcsThrdSrvV3.dpr plus what happens is that the wind ClientDisconnect is called before processing the received data, and so the connection is lost I assume you have turned off the default banner that the server component sends upon answer (set

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread François Piette
How to implement the time of the last action on the event and then check OnDataAvailable? Assuming you use ThrdSrv: Add a filed in the class TThrdSrvClient which is instanciated for each client connecting. Update this filed for datetime of the last message sent by the client, probably from the

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread François Piette
I'm doing based on the example MtSrv, would be the best for my case? Have you looked at the comments in front of MtSrv sample ? Here is is: MtSrv is an old sample program It works OK, but you should use ThrdSrv project I will

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread {Dark_Ducke}
Could use ThrdServer example, the problem was solved with WSocketServer1.Banner: =''; now I can not receive data, by setting longer just LINEMODE = FALSE, and after a few connections, does not enter the event OnDataAvailable when LINEMODE = TRUE event OnDataAvailable is never triggered ... have