[twsocket] TWsocket server client list Error

2006-10-05 Thread Miguel Ca
Hi I am using TwSocketServer in a service application that receives information from a POS Machine (using TCP) and I am having problems with the number of clients that shows WSocketServerEx.ClientCount. In some cases clientcount return more connections than the number of machines that I have

Re: [twsocket] FtpCli upload problem

2006-10-05 Thread New Era
Thanks for the tip but could not get the FtpCommon.pas, it is not on the Davie's web site (deadlink). If you have, could you post it to me thanks.. Fastream Technologies [EMAIL PROTECTED] wrote: Then I think you have no other choice then issuing a LIST and parsing the folder listing with

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Wilfried Mestdagh
Hello Miguel, BGException is background exception. It comes from the message pump. This means it can come also from your code in one of the TWSocket events. To test put them all in a exception block until you found the error (if it is over there of course). Socket operation on a non socket means

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Miguel Ca
Thank you for the answer Wilfried Im following your suggestios and I will test the Wsockets events today with try .. except blocks to try to find the error. However I want to ask something to, Is there a theory for the connections without IP and PORT that shows the TWsocketServer.client[i]?

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Fastream Technologies
Yes we have the same problem even though no exceptions are raised. This occurs with high traffic--especially sockets disconnecting with errors/abort. Regards, SZ - Original Message - From: Miguel Cañas [EMAIL PROTECTED] To: twsocket@elists.org Sent: Thursday, October 05, 2006 4:37 PM

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Wilfried Mestdagh
Hello Miguel, However I want to ask something to, Is there a theory for the connections without IP and PORT that shows the TWsocketServer.client[i]? No I have no theory at the momen. With empty IP and Port, which properties do you exacly mean ? in case that some timeotu expired, the code

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Wilfried Mestdagh
Hello Fastream, But if a client disconnect with an error in high traffic, which events are you logging ? Seems a wierd problem to me... --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Fastream Technologies
It seems the Client[] is not up to date. Perhaps we should remove the client from there when the disconnect signal is received? (not when the object is destroyed?) Best Regards, SubZero - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing

[twsocket] Authenticate event FTPServer

2006-10-05 Thread Arnold FLUTEAUX
Hi, In authenticate event of ftpserver, I do some tests and if my tests aren't ok, I set authenticated (one param of event) to false. But my clientcount is yet with this client. So I must do: Authenticated :=false; PostMessage(ftpserveur.Handle, WM_FTPSRV_CLOSE_REQUEST,

Re: [twsocket] Authenticate event FTPServer

2006-10-05 Thread Arno Garrels
Arnold FLUTEAUX wrote: Hi, In authenticate event of ftpserver, I do some tests and if my tests aren't ok, I set authenticated (one param of event) to false. But my clientcount is yet with this client. So I must do: Authenticated :=false; PostMessage(ftpserveur.Handle,

[twsocket] MD5 check needed ?

2006-10-05 Thread Arno Garrels
Hello, I'm writting a small C/S protocol. It includes sending/receiving database records. Would you suggest to send and check a MD5 checksum? May be it is OK to live with this overhead only upon database write requests? Arno Garrels -- To unsubscribe or change your settings for TWSocket

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Fastream Technologies
Hello Arno, AFAIK TCP already does CRC per packet so MD5 may be a bit expensive (doing additionally). Regards, SZ On 10/5/06, Arno Garrels [EMAIL PROTECTED] wrote: Hello, I'm writting a small C/S protocol. It includes sending/receiving database records. Would you suggest to send and check

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Arno Garrels
Fastream Technologies wrote: Hello Arno, AFAIK TCP already does CRC per packet so MD5 may be a bit expensive (doing additionally). What happens in ICS when a corrupted packet has been received? Is DataAvailable being triggered with an error 0 ? Regards, SZ On 10/5/06, Arno Garrels

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Wilfried Mestdagh
Hello Arno, What happens in ICS when a corrupted packet has been received? Is DataAvailable being triggered with an error 0 ? I assume you use TCP. No need for additional check. I never have seen a corrupt packet in TCP. Even not on radio networks where there is planty of noise. If I recall

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Arno Garrels
Wilfried Mestdagh wrote: Hello Arno, What happens in ICS when a corrupted packet has been received? Is DataAvailable being triggered with an error 0 ? I assume you use TCP. Yes I do. No need for additional check. I never have seen a corrupt packet in TCP. Even not on radio networks

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Arno Garrels
Francois PIETTE wrote: I'm writting a small C/S protocol. It includes sending/receiving database records. = No need: TCP stream already has error detection and correction I wasn't sure about how Winsock/ICS handles simple data corruption. What would happen if it happens? To detect man in

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Wilfried Mestdagh
Hello Arno, I wasn't sure about how Winsock/ICS handles simple data corruption. What would happen if it happens? Packets are resent. The amount of packets is depending the size of the receive window. If memory serve the receive window (where TCP send ACK) can be till 8 kb. --- Rgds, Wilfried

Re: [twsocket] How stable is ICS V6 ?

2006-10-05 Thread Éric Fleming Bonilha
I have also upgraded my server and client framework to use ICS 6 and it is running just excellent. I´m using ICS 6 on my camera surveillance software, so the server should be able to manage hundreds simmultaneous connections and should be able to work on extreme load scenarios. ICS 6 is totally

[twsocket] How to use THttpCli with threads?

2006-10-05 Thread Anatoly Podgoretsky
Hi! I want use THttpCli within TTread, but when I close application it eception with AV at address 0 Code follow constructor TBaseThread.Create; begin inherited Create(False); FreeOnTerminate := True; HttpClient := THttpCli.Create(nil); { HttpClient.Agent := 'Anatoly

[twsocket] I'm writting a small C/S protocol

2006-10-05 Thread Francois PIETTE
In a message, Arno Garrels wrote: I'm writting a small C/S protocol. It includes sending/receiving database records. Maybe you are interested by MidWare ? Did you had a look at it ? -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED]

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Wilfried Mestdagh
Hello Arno, So I will forget that and sleep well in the future, anyway it's much faster w/o a check, and I like it fast ;-) Yes you can sleep on both of your ears (Flemish proverb); --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To

Re: [twsocket] How to use THttpCli with threads?

2006-10-05 Thread Anatoly Podgoretsky
Hi all, I carefully reread a FAQ and see other scenario. Divide process into two pieces, download information from WEB site into main thread (ClientConnection) and run thread after data received only for database work. My application is NNTP server with downloading information from one site,