Re: [twsocket] Problem in the HttpCli authentication

2005-04-25 Thread Francois Piette
Doh ! -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Maurizio Lotauro" <[EMAIL PROTECTED]> To: Sent: Monday, April 25, 2005 12:58 AM Subject: [twsocket] Problem in the HttpCli authentication > Hello, > > I discovered that the HttpCli authentication has a serio

Re: [twsocket] Reasonable timeout

2005-04-25 Thread Piotr Hellrayzer Dałek
Hello! > Francois PIETTE wrote: >>> I just wonder how other programs can provide a >>> user defined TCP timeout that appears to overrule the system setting or >>> is something like that just a fake? >> >> I've searched on MSDN and found that setsockopt has those options: >> SO_RCVTIMEO Receives t

[twsocket] Any alternatives to multithreading?

2005-04-25 Thread Piotr Hellrayzer Dałek
Hi! Okay, this is discussed few times a year, and probably FAQ got something about, but.. The problem is simple. I didn't realized that when user has slow CPU and fast LAN[1], my HCM can't handle that well - looks like hung, and downloads slower than it's possible. I won't overcome the downloadin

Re: [twsocket] Reasonable timeout

2005-04-25 Thread Francois Piette
As I said before, it is not clear. MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/setsockopt_2.asp) says those BSD options are not available but a few lines later they say it is available in the Microsoft implementation of Windows Sockets 2. My interpretatio

Re: [twsocket] Any alternatives to multithreading?

2005-04-25 Thread Francois Piette
> Is there *any* way to slow down > ICS, so message queue overflow won't occur so often? Unless you use UDP or wsoSIO_RCVALL option, there is no reason to have a message queue overflow. Using TCP, if you don't read data as fast as the sender is able to send, the protocol is designed so that send

Re: [twsocket] Any alternatives to multithreading?

2005-04-25 Thread Arno Garrels
Piotr Hellrayzer Da³ek wrote: > Hi! > > Okay, this is discussed few times a year, and probably FAQ got something > about, but.. > > The problem is simple. I didn't realized that when user has slow CPU and > fast LAN[1], my HCM can't handle that well - looks like hung, and > downloads slower than

Re: [twsocket] Redirect a browser to another port

2005-04-25 Thread Guillaume MAISON
> I have HTTP server application. User has possibility to change listening > port. Is it possible to redirect a browser to another port ? > if the browser is recent enough, when connecting, you should have in the request a header named "Host: " followed by the hostname (or ip address) the browser

Re: [twsocket] Redirect a browser to another port

2005-04-25 Thread Francois Piette
You use a HTML relocation. Why not using a HTTP relocation ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, April 25, 2005 1:56 PM Subject: [twsocket] Redirect a browser to another por

Re: [twsocket] Redirect a browser to another port

2005-04-25 Thread Guillaume MAISON
> You use a HTML relocation. Why not using a HTTP relocation ? HTTP relocation is immediate while HTML relocation permits to use a timer on client side before reconnecting to the http server, with a url provided... timer to wait for the http server to be restarted on its new port. best regards,

RE: [twsocket] Redirect a browser to another port

2005-04-25 Thread Bjørnar Nielsen
You should probably wait with closing down the server until data is sent instead of using a timer. You might use OnDataSent and check the property AllSent before closing down. Then you can post a custom message to close down the server instead of using a timer, a slow line could use more than 500

Re[2]: [twsocket] Redirect a browser to another port

2005-04-25 Thread Wilfried Mestdagh
Hello Guillaume, Yes this works as a glance. Ter info THttpCli has a property RequestHostName witch returns the original host in the GET. And yes it is without the 'http://'. --- Rgds, Wilfried http://www.mestdagh.biz Monday, April 25, 2005, 14:22, Guillaume MAISON wrote: >> I have HTTP server

Re[2]: [twsocket] Redirect a browser to another port

2005-04-25 Thread Wilfried Mestdagh
Hello Bjørnar, > instead of using a timer. You might use OnDataSent and check the property > AllSent before closing down. Then you can post a custom message to close > down the server instead of using a timer, a slow line could use more than > 500 ms. It is typical used on LAN or fast lines. Howe

Re[3]: [twsocket] Redirect a browser to another port

2005-04-25 Thread Wilfried Mestdagh
> THttpCli has a property I meanth THttpConnection --- Rgds, Wilfried http://www.mestdagh.biz Monday, April 25, 2005, 15:11, Wilfried Mestdagh wrote: > Hello Guillaume, > Yes this works as a glance. Ter info THttpCli has a property > RequestHostName witch returns the original host in the GET.

[twsocket] FTP client and windows service problem

2005-04-25 Thread Nikolay Simeonov
Hello Francois, I'm writing a service and when I try to get the directory FTP1.Dir returns false. How can I pinpoint the problem and is there a way to figure out why it's returning false? I'm using it in non-multithread mode. What's more curious about the code is the fact it works when I use th

Re: [twsocket] Using THtmlSmtpCli in a TWebModule

2005-04-25 Thread Chris Matheson
That did the trick, thanks! chris > > I have been using the THtmlSmtpCli for some time and it works great. I have > > some web based code and when I put this object in it, it doesn't seem to > > work any more... When I run Connect it seems to go into the smtpDnsLookup > > state and stay there