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, pu

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Miguel Ca
Hello Wilfried Today i made some test and the results are not good for me. I colud no t find the error that triggger the exceptior but i find that for each exception i have an 'empty' connection (no ip no port). I will make a little explanacion of my code. My service is a tcp server very sim

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

[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] http://www.ov

[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 Podgor

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Stadin, Benjamin
Arno Garrels schrieb: > > I wasn't sure about how Winsock/ICS handles simple data corruption. > What would happen if it happens? A ethernet 802.x packet is a struct of: preamble (8 byte) | destination (6 byte) | source (6 byte) | length (2 byte) | data (46-1500 byte) | fcs (4 byte) If fcs (frame

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

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] 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 "ma

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Francois PIETTE
> 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? Why send MD5 checksum ? To detect errors ? => No need: TCP stream already h

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

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 recal

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, Ar

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 c

[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 mail

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,

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Wilfried Mestdagh
> 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?) The only reason I can think about is that there is eather an exception error in the OnClientDisconnect event, or something with

[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] 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" Sent:

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 m

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 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: Sent: Thursday, October 05, 2006 4:37 PM Subject: Re: [t

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] Writing a transparent HTTP proxy

2006-10-05 Thread Fastream Technologies
Ok. I see the point now. Thanks, SZ - Original Message - From: "Kris Leech" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Thursday, October 05, 2006 11:56 AM Subject: Re: [twsocket] Writing a transparent HTTP proxy : Fastream Technologies wrote: : : >Not exactly. No real answer

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] Writing a transparent HTTP proxy

2006-10-05 Thread Kris Leech
Fastream Technologies wrote: >Not exactly. No real answer for my actual question... > > I dont think you can support virtual hosts for http 1.0, is this what you are saying. You could support http 1.0 if you had a public IP per host if you really needed to. > >On 10/4/06, Kris Leech <[EMAIL P

[twsocket] I'm still disconnected

2006-10-05 Thread Francois Piette
I'm still disconnected from the mailing list. I have subscribed using my private account in the hope of solving the problem. Sorry if I haven't answered your questions. -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://

Re: [twsocket] How stable is ICS V6 ?

2006-10-05 Thread Fastream Technologies
Hello, We have a HTTPS reverse proxy written with v6 and after long days of stress testing, we found it rather stable and much more efficient than v5. Regards, SZ - Original Message - From: "Erich Kuba" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Thursday, October 05, 2006 10

[twsocket] How stable is ICS V6 ?

2006-10-05 Thread Erich Kuba
Hi All, I've been using the ICS components for about 6 or 7 years now, and I have to say well done to Francois and everyone else who has contributed over the years. I've written some reasonably large server oriented systems using the TWSocket component as the basis for a server framework that I'v

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 Davi

[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 c