[twsocket] Which component to use?

2013-04-25 Thread {Dark_Ducke}
, and exchange messages between the server and terminals! Thank you! -- By {Dark_Ducke} -- 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

[twsocket] Close connection (destroy) idle clients

2013-04-26 Thread {Dark_Ducke}
ead(htoin(PChar(Buf), Length(Buf))); if ClientThread.ClientWSocket.Terminated then ClientThread.Release; if ClientThread.ClientWSocket.OnSessionClosed then ClientThread.Release; Application.ProcessMessages; end; Dont work!! Thanks! -- By {Da

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

2013-04-26 Thread {Dark_Ducke}
sionClosed then > > No idea what you are attempting to do here, this is an event handler > setter, not a property. > > Angus > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket &

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 dire

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 Fr

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 cl

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 connection

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} > 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 conti

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 ... ha

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

2013-05-02 Thread {Dark_Ducke}
Hello, the protocol used is TCP, the POS terminal sends to the server is a string of ASCII characters like this "ACTION=VENDA&ID_TERMINAL=528-533-378&ID_EVENTO=1579&ID_SETOR=00018087&QTDE=01&TPEMISSAO=0&TIPO=0&MAG=0" what happens is that after some transactions by sending the string to the serv

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

2013-05-07 Thread {Dark_Ducke}
Hello, I could use the component TWSocketServer based on this example: http://edn.embarcadero.com/br/article/20465 now it seems to be working perfectly connecting to POS terminals, is correct to use in this instance? can continue to develop with reference it? a question .. when the connection is te