[twsocket] Adding gzip to HttpCli

2005-06-30 Thread Maurizio Lotauro
Hello, I finally get some time to check the changes proposed to handle the gzip content encoding. First I think that it should be better not to add specific gzip handling but a generic class to handle the content encoding, using a registration machanism for each encoding, like what happen with TG

RE: [twsocket] Servertimeout ... i don't get it working

2005-06-30 Thread Fredrik Larsson
The TWSocketClientClass is same as TWSocket. I am quite sure that you can add the onchangestate event just by typecasting to TWSocket. The following compiles ok... procedure TForm1.WSocket1ChangeState(Sender: TObject; OldState, NewState: TSocketState); begin //do something end; procedure TFor

[twsocket] Why exceptions?

2005-06-30 Thread Piotr Hellrayzer Dałek
Hi! I just wonder - why we have to use exceptions and exception handling so often? I mean, why exceptions, not function results? For example: procedure TNntpCli.List(DestStream : TStream); begin if FState <> nntpReady then raise NntpException.Create('Not ready for LIST'); FDataS

[twsocket] Servertimeout ... i don't get it working

2005-06-30 Thread Frank Wunderlich
Hi, i've asked you a few days before because i want to make my server watch for loosing connections. the client has the event OnChangeState but the server have nothing like this for the client-connection-lost (not disconnect). i tried to set events for new created clients, ive tried to send data

Re: [twsocket] Listenbacklog

2005-06-30 Thread Arno Garrels
Paul wrote: > I still have one question :when I use a Windows2003 server , what is the > value I should use or can I set it to 200 anyway on any version of > Windows server ? If it's set higher then supported by the OS it shouldn't hurt. The listenbacklog is a queue/buffer sitting in front of the

[twsocket] Listenbacklog

2005-06-30 Thread Paul
Hi Bjørnar, thanks for your comment. I still have one question :when I use a Windows2003 server , what is the value I should use or can I set it to 200 anyway on any version of Windows server ? Paul >It's the OS that get notified when a client wants to connecto to your >program. If the B

Re: [twsocket] Missing disconnect from GPRS units

2005-06-30 Thread Info 2004
Wilfried, Wilfried Mestdagh wrote: Hi Andy, What Angus do is an approach, but indeed as he claim, it can get a expencieve, specially when the vehicles are in other countries. You also have to be aware that another vehicle can connect with an IP address of a 'loosed' vehicle, so then you have o

Re: [twsocket] Missing disconnect from GPRS units

2005-06-30 Thread Info 2004
Angus, Thanks for the reply. I was hoping to find out that I was doing something silly. Ah well. You are right on the billing aspect. My client is very sensitive to this issue. ...Andy Angus Robertson - Magenta Systems Ltd wrote: I have some vehicles with GPRS modems connected to O2 in the

Re: [twsocket] Missing disconnect from GPRS units

2005-06-30 Thread Angus Robertson - Magenta Systems Ltd
> What Angus do is an approach, but indeed as he claim, it can get a > expencieve, specially when the vehicles are in other countries. Fortunately my vehicles don't venture more than 10 miles or so from the garage We're also looking at DVB datastreams for one way data when they are away from t

Re: [twsocket] Missing disconnect from GPRS units

2005-06-30 Thread Wilfried Mestdagh
Hi Andy, What Angus do is an approach, but indeed as he claim, it can get a expencieve, specially when the vehicles are in other countries. You also have to be aware that another vehicle can connect with an IP address of a 'loosed' vehicle, so then you have on your server 3 connections with same

Re: [twsocket] Missing disconnect from GPRS units

2005-06-30 Thread Angus Robertson - Magenta Systems Ltd
> I have some vehicles with GPRS modems connected to O2 in the UK. The > problem I have is when the O2 "network" drops a connection to my server > - i.e. a close not initiated from the vehicle, or my server. When this > happens, I never see a disconnect, so the next time the unit reports > in,

RE: [twsocket] Listenbacklog

2005-06-30 Thread Bjørnar Nielsen
It's the OS that get notified when a client wants to connecto to your program. If the Backlog is 1, the OS wont accept any more connections before your program have accepted the previous attempt to connect. On a non-server-platform, this backlog is usually limited to 5 or 10. On a server-platform,

RE: [twsocket] Assign event handler to manually created TStmpCli

2005-06-30 Thread Bjørnar Nielsen
I use CBuilder. I also sometimes have problems with debugging delphi sourse, try rebuilding ICS with all debug options on, and the same with your project, then try to inspect the variables. Regards Bjørnar > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Beh