Re: [twsocket] Message Processing of FTP-Client in threads

2005-03-17 Thread Francois PIETTE
Maybe be it workes, because there is a Application.Processmessages somewhere in my code. You should not call Application.Processmessages from a thread. However, I have solved my problem in the meanwhile by using MsgWaitForMultipleObjects. If you look into ICS source code, you'll see that it

Re: [twsocket] UDP datagramreceive periodically freezes for seconds

2005-03-17 Thread Wilfried Mestdagh
Hello Udvari, TWSocketServer does not handle UDP, only TCP. --- Rgds, Wilfried http://www.mestdagh.biz Thursday, March 17, 2005, 16:28, Udvari Andrs Lszl wrote: Hi List, I wrote a little client-server application, which measures UDP datagram transfer speed. The server is using

RE: [twsocket] HELP with NTLM authentication

2005-03-17 Thread Albert Wiersch
Thank you for checking. What compiler did you compile THttpCli with? Did you do anything special to get it to work? It still doesn't work for me. How did you get the headers log? Perhaps I could try to see what's going on as well. When I try it, I get a page back titled You are not authorized

Re: [twsocket] router and IP

2005-03-17 Thread rogersmail
Would it be safe to say using the app i mentioned that if none of the Adapter IP's are the same as the Web IP returned that the user must be using a proxy or router.. If not how are people detecting whether they are using either a proxy or router.. Should i ask them at setup or is it detectable?

RE: [twsocket] UDP datagramreceive periodically freezes for seconds

2005-03-17 Thread Udvari András László
Thanks, but it has the same behaviour with 1100 byte long packets, which is well under the size of the MTU. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcello Vezzelli Sent: Thursday, March 17, 2005 5:17 PM To: ICS support mailing Subject: Re:

Re[2]: [twsocket] router and IP

2005-03-17 Thread Wilfried Mestdagh
Hello, detecting whether they are using either a proxy or router Should i ask them at setup or is it detectable? There is a lot detectable but nothing is 100% safe. Check IPhelper on overbyte.be which has lots on board. --- Rgds, Wilfried http://www.mestdagh.biz Friday, March 18, 2005,

RE: [twsocket] HELP with NTLM authentication

2005-03-18 Thread Albert Wiersch
Thank you. I created a logging mechanism. I noticed that the first request from THttpCli did not have a Keep-alive connection like it seems yours did in step 1 so I investigated this. It lead me to this code: {$IFDEF DELPHI5_UP} {$DEFINE UseNTLMAuthentication} {$ENDIF} Since I'm using BCB

[twsocket] ** PROXY SERVER **

2005-03-18 Thread Sebastião Ferreira Mendes Júnior
Sorry , but I realy need answer, How use the GpHTTPProxy without problems? This is possible? Need use another component or I need build myself ? Thanks advice. Sebastião Jùnior _ MSN Busca: fácil, rápido, direto ao ponto.

RE: [twsocket] HELP with NTLM authentication

2005-03-18 Thread Maurizio Lotauro
On 18-Mar-05 00:24:39 Albert Wiersch wrote: [...] When I try it, I get a page back titled You are not authorized to view this page. When I switch the server to accepting basic authentication, it works. I bet that you are using an old release of ICS. The NTLM is present in the release of this

Re: Re[2]: [twsocket] router and IP

2005-03-19 Thread rogersmail
I do have a little proggy that might help reduce the amount of basic questions that you repeatedly need to answer if you wish to make it available to your users which if you want to i can change the link in the about box from one of my sites to www.overbyte.be if you like.. If you wish to try it

[twsocket] HTTP client: what about posting zero bytes ?

2005-03-19 Thread Francois PIETTE
Actually, THttpCli.DoRequestAsync is implemented to trigger an exception if there is nothing to POST/PUT: if ((Rq = httpPOST) or (Rq = httpPUT)) and (not Assigned(FSendStream) or (FSendStream.Position = FSendStream.Size)) then raise EHttpException.Create('HTTP component

Re: [twsocket] HTTP client: what about posting zero bytes ?

2005-03-21 Thread Francois Piette
Anyone has complained that he cannot send an empty data using the POST or PUT method? Well, I have one of my apps that doesn't work in some wases: when data to send is empty. And it is perfectly OK for the app to have a post with empty data. And I can't change the post to a get since the

Re: [twsocket] HTTP client: what about posting zero bytes ?

2005-03-21 Thread Marcello Vezzelli
Francois Piette ha scritto: Anyone has complained that he cannot send an empty data using the POST or PUT method? Well, I have one of my apps that doesn't work in some wases: when data to send is empty. And it is perfectly OK for the app to have a post with empty data. And I can't change the

Re: [twsocket] HTTP client: what about posting zero bytes ?

2005-03-21 Thread Maurizio Lotauro
Scrive Francois Piette [EMAIL PROTECTED]: Anyone has complained that he cannot send an empty data using the POST or PUT method? Well, I have one of my apps that doesn't work in some wases: when data to send is empty. And it is perfectly OK for the app to have a post with empty data. And

Re: [twsocket] ICS repeater

2005-03-24 Thread Francois Piette
I looking for a repeater for ICS like the VNC repeater: From a remote location, the client reach a repetaer a fix address behind a firewall and this one routes the packet to one of the internal machines not reachable from outside. This is what I name a proxy. Any idea ? I have no idea

Re: [twsocket] FTP server manual pasv ports

2005-03-24 Thread Francois PIETTE
Any idea? Not implemented. -- [EMAIL PROTECTED] http://www.overbyte.be . - Original Message - From: Fastream Technologies [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, March 24, 2005 1:15 PM Subject: [twsocket] FTP server manual pasv ports Hello,

Re: [twsocket] Newbie here

2005-03-28 Thread Wilfried Mestdagh
Hello Andy, First of all, you dont need threads if you wants to have multiple connections. All go in main thread also. Could be that you need a thread or many, but certainly not for this reason. If the encryption of the data is a lenghty operation then it can maybe in your database class. This

Re: [twsocket] mget ont TFtpCli

2005-03-28 Thread Francois PIETTE
Do a list and then iterate thru the list to get each file. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Léo [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, March 28, 2005 7:23 PM Subject: [twsocket] mget ont TFtpCli How do I a multiple get for files

Re: [twsocket] RE2: FTPClient Get-Command-Problem on UNIX-Server

2005-03-29 Thread Mice Cage
Is this then the right way? Delphi7-Code: FtpClient1.HostName := HostNameEdit.Text; FtpClient1.Port := PortEdit.Text; FtpClient1.UserName := UserNameEdit.Text; FtpClient1.Password := PasswordEdit.Text; FtpClient1.HostDirName

Re: [twsocket] SmtpCli problem with OnAttachContentType

2005-03-29 Thread Arno Garrels
Bevan Edwards wrote: I have just discovered a problem with the OnAttachContentType implementation in TSmtpCli and TSyncSmtpCli. When this property is assigned, as soon as InitUUEncode is called within TriggerGetData, the assignment to FOnAttachContentType is lost. Try current ICS

Re: [twsocket] SmtpCli problem with OnAttachContentType

2005-03-29 Thread Bevan Edwards
Hi Arno, I have just discovered a problem with the OnAttachContentType implementation in TSmtpCli and TSyncSmtpCli. When this property is assigned, as soon as InitUUEncode is called within TriggerGetData, the assignment to FOnAttachContentType is lost. Try current ICS release, SmtpProt.pas has

Re: [twsocket] FTPClient UNIX-Server - How to setup binary mode? - isthis the right way?

2005-03-29 Thread Arno Garrels
Mice Cage wrote: I know now that I have to use the Typeset-Command. I hope I placed it now at the right place: ftpclient1.cwd; {}FtpClient1.TypeSet; Yes. Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] RE2: FTPClient Get-Command-Problem on UNIX-Server

2005-03-29 Thread Francois PIETTE
Is this then the right way? Looks good. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Mice Cage [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, March 29, 2005 4:42 PM Subject: Re: [twsocket] RE2: FTPClient Get-Command-Problem on

Re: [twsocket] getting the plain text part of a mail

2005-04-04 Thread Steve Williams
There are other cases. I have some example messages from a mailing list that are multipart/mixed with four parts where each part is text/plain and no HTML. So, the robust solution here is if it is multipart, to examine the content type of each part individually and see if it is text/plain.

Re: [twsocket] HTTPClient

2005-04-04 Thread Wilfried Mestdagh
Hello Robert, If the server does not give you the length, then it is impossible to know. ps: please dont reply on a thread if you start a new topic. Many people will not see your question if they use an email reader that sort on topic and when they dont follow the topic. I only saw it by

[twsocket] Udp lidtening with Kylix TIcsSocket

2005-04-05 Thread Alain Gauthier
Hi all, I am quite new with developing applications using sockets. In order to understand Udp protocol I tried to adapt UdpLstn example on Kylix. Mainly it requires only to replace TWSocket by TIcsSocket in the code. Nevertheless it seems not enough : with the listener started on the port

Re: [twsocket] HttpCli with passwords

2005-04-08 Thread Guillaume MAISON
I have narrowed down the problem a bit. The OnHeaderEnd routine gets called twice when using passwords, the first time with a negative contentlength, the second time with the proper value. Using D7, httpprot 1.83. (It only gets called once when not using usernames/passwords, which is what

Re: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-09 Thread Wilfried Mestdagh
Hello Mice, I'm working on a ftpclient. If it is possible with FTPCLI I want to add a feature to setup the maximal downloadspeed Several aproach are possible. One aproach is to create FtpCli in a thread and use throttling code you can find on http://www.smatters.com/ics Other aproach are to

[twsocket] FTP LIST parsing

2005-04-09 Thread Angus Robertson - Magenta Systems Ltd
If anyone else is using the smatters.com ftpcommon.pas FTP LIST parsing code, I've just discovered a nasty bug converting MS-DOS formatted times used (sometimes) by Windows IIS FTP. 12:30AM was being converted to 12:30:00, not 00:30:00. A fix is needed in the function FormatTime1, inserting

Re: Re[4]: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-10 Thread Mice Cage
Sorry but this was wrong. I found the solution: If X=0 Then Begin If ForceSleep Then begin Application.ProcessMessages; Sleep(x); end Else MsgWaitForMultipleObjects(0,msgHandles,False,X,QS_SENDMESSAGE); End; Application.ProcessMessages is the solution.

Re[6]: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-10 Thread Wilfried Mestdagh
Hello Mice, Application.ProcessMessages; Sleep(x); Bad idea :( Pumping messages will have your event re-entered and thus produce unpredicable results. If you wants to do that then you have to write a mechanism to prevent it. It is mutch better to use the MsgWait function, as I

Re: Re[2]: [twsocket] Is there a way to setup a valuefor maximal downloadspeed?

2005-04-10 Thread Dan
You can have a look at and try to modify/improve my throttling code: http://www.xantorrent.pwp.blueyonder.co.uk/ics/uThrottledWSocket.pas Dan - Original Message - From: Mice Cage [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, April 10, 2005 12:02 PM Subject:

Re: Re[2]: [twsocket] Is there a way to setupa valuefor maximal downloadspeed?

2005-04-10 Thread Dan
Hehe, unfortunately, its a little more difficult than that...you'll need to derive your own TFTPClient and make it use TThrottledWSocket internally instead of TWSocket. Make sure this is for the data connection too, the control connection shouldn't need throttling. Dan - Original Message

Re[2]: [twsocket] NOFORMS and TWSocketServer

2005-04-10 Thread Jack
Thanks Wilfried and Arno. I did have NOFORMS defined in the project settings. That's how I got 111KB in the original project. Then I just modified it. I tried excluding the uses units one by one and it seems that I'm having the minimum. What I have (in all units) are: Windows, SysUtils,

RE: [twsocket] Is there a way to download a file in threads?

2005-04-14 Thread Bjørnar Nielsen
The only shortcoming of ICS is the web server which has no official and/or optimized CGI/ISAPI component and by design async which is bad for a web server. SZ, why do you think async design is bad for a webserver? Regards Bjørnar -- To unsubscribe or change your settings for TWSocket

Re: [twsocket] Is there a way to download a file in threads?

2005-04-14 Thread Fastream Technologies
Hello, Well, async cannot take advantage of multi-processor systems. Also for CGI and ISAPI execution, threads seem to be a better way. And all the commercial Web servers I know such as IIS and Apache chose it for these reasons. Best Regards, SZ - Original Message - From: Bjrnar

RE: [twsocket] Is there a way to download a file in threads?

2005-04-14 Thread Primož Gabrijelčič
Well, async cannot take advantage of multi-processor systems. Also for CGI and ISAPI execution, threads seem to be a better way. And all the commercial Web servers I know such as IIS and Apache chose it for these reasons. You are mixing up two factors. Even on multi-processor system, one

[twsocket] New release: minor bug fix, new sample

2005-04-14 Thread Francois PIETTE
A new ICS version is available. A small bug has been fixed in the HTTP client component that affected authentication with iPlanet Web Proxy Server (found by Mr Bloms and Tomachinsky). A new console mode sample: ConUdpLstn. It is the GUI sample UdpLstn ported to console. It make use on the

Re: Re[4]: [twsocket] NOFORMS and TWSocketServer

2005-04-14 Thread Marco van de Voort
Only used. I even deleted all ICS dcu files. I created a new console mode application (D7), added NOFORMS in the project defines. Compilation gives a filesize: 39.424 Bytes. Added WSocket to the uses clause: 91.136 Bytes. Added WSocketS to the uses clause: 91.648 Bytes. Removed NOFORMS

[twsocket] Can the TWSocket use the Http proxy?

2005-04-15 Thread 赵亦平
Is the TWSocket only use Socks4/5 proxy? How can use the http proxy? Thanks a lot? bruce zhao [EMAIL PROTECTED] 2005-04-15 -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit

Re: [twsocket] New release: minor bug fix, new sample

2005-04-16 Thread Francois PIETTE
OK, I have applyed it to my source. Will be visible next upload. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Maurizio Lotauro [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Saturday, April 16, 2005 3:16 AM Subject: Re: [twsocket] New

Re: [twsocket] Question How can I setup checkboxes to see theFTP-Status

2005-04-16 Thread Francois PIETTE
I'm coding with Delphi 2005. Win32 personnality ? Till now I don't see the ftp-status. I like to have 3 checkboxes for each status (Online, 421, Offline). If one status is true the checkbox for the status should be checked. I know that FTPCLI has a status-Option with a log. How can I do

Re: [twsocket] Question How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Francois PIETTE
I don't see any error-message. For example the FTP is not connected, delphi2005 gives me the error-message with the option to break or continue. i think i miss something. So what do I need minimal to get the error-messages? Use OnBgException event. Use Try/Except Use Application.OnException --

Re: [twsocket] Question How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Arno Garrels
Mike McGreek wrote: You understand me wrong. I do the connect-call then the other calls. I want to know what I need minimal to get the Error-Messages and the normal messages from the server. Here a example: I connect to the server. The server send me 421 back. If it is 421 my program

Re: [twsocket] Question How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Mike McGreek
Arno, I think that will be the easiest way. I'll try it. I readed the whole code and understand it. It is realy good written. Also the infos about each function. Great work. It is more stabil than Indy10. I'll keep on trying ... Probably FtpCli.StatusCode is what you are looking for? Arno

Re: [twsocket] Question How can I setup checkboxes toseetheFTP-Status

2005-04-16 Thread Arno Garrels
Mike McGreek wrote: Arno, I think that will be the easiest way. I'll try it. I readed the whole code and understand it. That's great, then you have probably realized that in comparison with Indy ICS requires a totaly different programming stile, since virtually anything is event-driven. Given

Re: [twsocket] Question How can I setup checkboxes toseetheFTP-Status

2005-04-16 Thread Angus Robertson - Magenta Systems Ltd
Given you want best performance one should use the async/none-blocking methods, however in TFtpCli each method has also a blocking (sync) counterpart that allows you to code more like the Indy way (slow). Indy might be slow, I really don't know, but I don't see using the sync methods in ICS

Re: [twsocket] Question How can I setup checkboxestoseetheFTP-Status

2005-04-16 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: Given you want best performance one should use the async/none-blocking methods, however in TFtpCli each method has also a blocking (sync) counterpart that allows you to code more like the Indy way (slow). Indy might be slow, I really don't know,

Re: [twsocket] Question How can I setup checkboxestoseetheFTP-Status

2005-04-17 Thread Angus Robertson - Magenta Systems Ltd
However the speed depends of course, if you have just a single instance, it makes no difference, but how do you realize multiple, concurrent i.e. FTP-dowloads in sync mode? You would have to go multithreaded, pooled or one thread per connection but that's definitely slower than having

Re: [twsocket] Multithreaded http...

2005-04-17 Thread Ann
:-( I cant handle it ;- I dont really understand the HTTPAsy example ;-( Could anybody help me? For example i got a an edit, where im deciding how may threads (simaltaneous async http components) are going to be used... for example ... 50..., got some memo... every line of memo is some http

Re: [twsocket] Question How can I setupcheckboxestoseetheFTP-Status

2005-04-17 Thread Angus Robertson - Magenta Systems Ltd
Do you say that you are convinced MsgWaitForMultpleObjects() is faster than Sleep()and ProcessMessages; ;-) Both MsgWaitForMultpleObjects and Sleep seriously slow down a program that's trying to do multiple jobs at the same time. Angus -- To unsubscribe or change your settings for

Re: [twsocket] Multithreaded http...

2005-04-17 Thread Ann
- Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, April 17, 2005 3:47 PM Subject: Re: [twsocket] Multithreaded http... You need: - A TStringList with all URL to get, call it UrlToGetList Understood - A TSringList

Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
Hello Ann, Sorry I was incomplete :( What will happen when someone will change the system time? Then you are in trouble :( What does (TDataTime - TDataTime) return? miliseconds? From the top of my head: var BeginTime: TDateTime; EndTime: TDateTime; begin AllocConsole; // open a

Re: Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Arno Garrels
Wilfried Mestdagh wrote: You can also use GetTickCount, however overrun every 28 day's or so. Sorry for being OT, but that's why I suggested a tiny little helper function also for use in ICS, something like: function CalcTicksAppart(const T1: LongWord): LongWord; var T2 : LongWord; begin

Re: Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Francois PIETTE
What will happen when someone will change the system time? Then you are in trouble :( Not if she use GetTickCount which returns the nb of milliseconds since the system is up and running. Restart to zero after approximately 49 days. That is perfectly suitable for timeout determination. --

Re[4]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
Hello Ann, in On requestDone: THttpCli(Sender).RcvdStream --- Rgds, Wilfried http://www.mestdagh.biz Sunday, April 17, 2005, 22:10, Ann wrote: - Original Message - From: Marco van de Voort [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, April 17, 2005

Re: [twsocket] Multithreaded http...

2005-04-17 Thread Steve Williams
Wilfried Mestdagh wrote: you are ritght because working with float is more CPU. But GetTickCount roll over every 49 day... So without extra code the timeout can fail if it is (by Murphy's law) just on the particular moment.. It's not that much more code. NewTime := GetTickCount(); if NewTime

[twsocket] HttpCli and the 404 status code

2005-04-17 Thread Maurizio Lotauro
Hello, I noticed that the HttpCli component return the 404 status code not only when the server return this code but even under different situations. For example when it is unable to resolve the hostname or when wsocket raise an error (please correct me if I'm wrong). This is a problem because

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-17 Thread Ann
But how do i convert it to StringList ? - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, April 17, 2005 10:38 PM Subject: Re[4]: [twsocket] Multithreaded http... Hello Ann, in On requestDone:

Re: [twsocket] THttpServer not complies with RFC?

2005-04-18 Thread Fastream Technologies
Oh, I guess my version was a bit old. This may be the problem. Thanks, SZ - Original Message - From: Bjrnar Nielsen [EMAIL PROTECTED] To: 'ICS support mailing' twsocket@elists.org Sent: Monday, April 18, 2005 12:13 PM Subject: RE: [twsocket] THttpServer not complies with RFC? I have not

Re: [twsocket] HttpCli and the 404 status code

2005-04-18 Thread Marcello Vezzelli
Maurizio Lotauro wrote: I noticed that the HttpCli component return the 404 status code not only when the server return this code but even under different situations. For example when it is unable to resolve the hostname or when wsocket raise an error (please correct me if I'm wrong). I noticed

Re: [twsocket] HttpCli and the 404 status code

2005-04-20 Thread Maurizio Lotauro
Scrive Francois Piette [EMAIL PROTECTED]: Probably a solution could be to expose the FRequestDoneError field. The status code should be meaningful only if FRequestDoneError=0. You mean reporting 10060 (and others) to the error field ? If you mean FRequestDoneError yes. Yes, probably

Re: Re[2]: [twsocket] Is there a waytosetupa valuefor maximaldownloadspeed? (wrong link)

2005-04-20 Thread ahmad saeed ghasemi
thanks :) --- Dan [EMAIL PROTECTED] wrote: - Original Message - From: ahmad saeed ghasemi [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, April 15, 2005 10:55 PM Subject: Re: Re[2]: [twsocket] Is there a waytosetupa valuefor maximaldownloadspeed?

RE: [twsocket] VOIP

2005-04-20 Thread Norbert Saint Georges
Hi, I find that the implementation of SIP and H323 in ICS would be one +. The address of the compo interests me too :-) Norbert -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Arno Garrels Envoyé : lundi 18 avril 2005 20:02 À : ICS support mailing

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-20 Thread Ann
I don't really know what to do with TMemoryStream... i need TStringList ... the site isn't that big, so it should be any problem... But i still don't know how do i convert the recived stream to TStringList... ;-( - Original Message - From: Francois Piette [EMAIL PROTECTED] To: ICS

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-20 Thread Dan
Before you start your request (before the get) you need to assign the receive stream: HTTPCli.RcvdStream:=TMemoryStream.Create; Then, in the OnRequestDone, as has been explained, you have the rcvdstream to read from: var StringList: TStrings; StringList:=TStringList.Create;

Re: [twsocket] Multithreaded http...

2005-04-20 Thread Marcello Vezzelli
Dan wrote: Before you start your request (before the get) you need to assign the receive stream: HTTPCli.RcvdStream:=TMemoryStream.Create; Then, in the OnRequestDone, as has been explained, you have the rcvdstream to read from: var StringList: TStrings; StringList:=TStringList.Create;

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-20 Thread Arno Garrels
Ann wrote: I don't really know what to do with TMemoryStream... i need TStringList ... the site isn't that big, so it should be any problem... But i still don't know how do i convert the recived stream to TStringList... ;-( I'm sorry, but I strongly suggest that you learn Delphi by a far

Re: [twsocket] HttpCli and the 404 status code

2005-04-20 Thread Maurizio Lotauro
Scrive Francois PIETTE [EMAIL PROTECTED]: Probably a solution could be to expose the FRequestDoneError field. The status code should be meaningful only if FRequestDoneError=0. I verifyed and actually the OnRequestDone error reflect the winsock error ! Who use sync operation will get an

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-20 Thread Ann
So this ruin everything... semi-multithreading won't make its role... - Original Message - From: Dan [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, April 20, 2005 5:45 PM Subject: Re: Re[4]: [twsocket] Multithreaded http... Before you start your request

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-21 Thread Francois Piette
So this ruin everything... semi-multithreading won't make its role... Please elaborate. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at

[twsocket] Using THtmlSmtpCli in a TWebModule

2005-04-22 Thread Chris Matheson
Hi, 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. Is there anything I need to do to make it

Re: [twsocket] Using THtmlSmtpCli in a TWebModule

2005-04-22 Thread Francois Piette
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. Is there anything I need to do to make it work

Re[2]: [twsocket] Reasonable timeout

2005-04-23 Thread Wilfried Mestdagh
Hello Arno, I recall that we had a discussion in this list a while ago, but there seems to be nothing in FAQ yet. I have a lot of saved mails to put in the FAQ. Maybe I recalled some of them. Need to find some time soon to upgrade FAQ. Will drop a message as always when done. I just wonder

Re: [twsocket] Reasonable timeout

2005-04-23 Thread Arno Garrels
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 time-out in milliseconds

Re: [twsocket] missing header file

2005-04-24 Thread Francois PIETTE
I searched my computer and the file WSocket.h does not exist anywhere, I must have made an error on the installation. I am using BCB6 Personnel. There is no wsocket.h file in or used by ICS. There is a wsocket.hpp that is created when you install the component, that is when you build the

[twsocket] Problem in the HttpCli authentication

2005-04-24 Thread Maurizio Lotauro
Hello, I discovered that the HttpCli authentication has a serious problem. When both the host and the proxy requiring an authentication then an endless loop will generated (a sort of ping pong between 407 and 401 status). I'm working for a fix and will send it to Francois when ready. Bye,

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

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

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 it's

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 twsocket@elists.org Sent: Monday, April 25, 2005 1:56 PM Subject: [twsocket] Redirect a browser

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] FTP client and windows service problem

2005-04-26 Thread Francois Piette
Maybe you have a file permission problem. Your service is logged under system account or another account. Check that it has the required permissions. Also a side problem I'm having is: do you know of a simple way to parse the results from the DIR command into a simple list of filenames, sizes,

Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Arno Garrels
Nikolay Simeonov wrote: 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? There is i.e. property StatusCode and there are events also. You may assign

Re: [twsocket] VOIP

2005-04-26 Thread Arno Garrels
I've just found something interisting here: http://www.ictrnid.org.uk/downloads/SIP/SIP-0.3.zip The stack uses Indy 9.0.14 :( why not ICS? RNID SIP STACK == This library of code consists of three main parts: * a SIP stack (RFC 3261), * an RTP stack (RFC 3550), and * SDP (RFC 2327)

RE: [twsocket] FTP client and windows service problem

2005-04-26 Thread Nikolay Simeonov
Hi Arno, I did use any possible way that occurred to my mind to figure out what the problem is without any success. And as I said - it's working just fine when I am testing it from a standart windows application, but when I start the service it's crashing. What I was getting from the DIR command

Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Arno Garrels
Nikolay Simeonov wrote: Hi Arno, I did use any possible way that occurred to my mind to figure out what the problem is without any success. And as I said - it's working just fine when I am testing it from a standart windows application, but when I start the service it's crashing. What I was

RE: [twsocket] FTP client and windows service problem

2005-04-26 Thread Nikolay Simeonov
It definitely has the permissions because I ran it as an administrator. I tried as local system as well - both have full access granted for this folder (as a matter of fact - for every folder on my development machine). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

RE: [twsocket] FTP client and windows service problem

2005-04-26 Thread Nikolay Simeonov
It was saving the data in the service's folder and I'm 100% sure it had the proper permissions to do that. The file was created but with a size of 0. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: Tuesday,

RE: [twsocket] FTP client and windows service problem

2005-04-26 Thread Nikolay Simeonov
But in this case FTPclient1.Dir would return true and in my case it's returning false. However no exception is thrown and I'm lost how to figure out WHY I'm getting false there and what the problem could be. Everything is working just fine as Windows Application - it's getting the folder listing,

Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Francois Piette
It's easy to do a quick test using a TFileStream to write something in the service's folder to confirm it's a permission problem or not. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Nikolay Simeonov [EMAIL PROTECTED] To: 'ICS support mailing'

Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Dan
Can you list to a MemoryStream just to rule out permissions problems. Dan - Original Message - From: Nikolay Simeonov [EMAIL PROTECTED] To: 'ICS support mailing' twsocket@elists.org Sent: Tuesday, April 26, 2005 11:58 AM Subject: RE: [twsocket] FTP client and windows service problem It

[twsocket] installation of ICS with BCB6.0

2005-04-26 Thread Alain Lecomte
Perhaps a well known problem : I try to install ICS with BCB6.0 - Building of IcsBcb60.bpk is ok (no error) - Just after, i get a window stating that the following modification is mandatory : Add bcbie (Bcbie has the explicit unit Shdocvw_ocx)= It seems that the only choice i have is to

Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Arno Garrels
Nikolay Simeonov wrote: But in this case FTPclient1.Dir would return true and in my case it's returning false. Check the StatusCode, on listing an empty directory it may be either 450 or 550. 450 Requested file action not taken. File unavailable (e.g., file busy). 550 Requested action not

Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Dan
- Original Message - From: Nikolay Simeonov [EMAIL PROTECTED] To: 'ICS support mailing' twsocket@elists.org Sent: Tuesday, April 26, 2005 12:24 PM Subject: RE: [twsocket] FTP client and windows service problem But in this case FTPclient1.Dir would return true and in my case it's

[twsocket] [HELP] FtpServer : Long Process HOWTO

2005-04-26 Thread Guillaume MAISON
Hi everyone, here's my problem : still in my video server, i'm using the FtpServer component to download a set of images, taken from a camera, through one simple RETR call. On the OnGetProcessing event, i retrieve from a DB (the connection has already been made) all the images needed (range of

Re: [twsocket] [HELP] FtpServer : Long Process HOWTO

2005-04-26 Thread Francois PIETTE
FTP server component will send the files simultaneously to all client at their own speed. It is serialized only when in the event handler, not for sending files. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Guillaume MAISON [EMAIL PROTECTED] To: iCS support

RE: [twsocket] VOIP

2005-04-27 Thread Fredrik Larsson
Have you looked into what kind of effort it take to accomplish this? I might be interesting of helping out a bit. I have done a lot of TAPI programming and know a bit about that. I have played little with VOIP but I it might be interesting to take a closer look again. Regards, Fredrik.

Re: [twsocket] VOIP

2005-04-27 Thread Arno Garrels
Fredrik Larsson wrote: Have you looked into what kind of effort it take to accomplish this? From the first view, and having read just 30% of RFC3261 it's nothing you could do just on the fly. However SIP appears to be an easy to learn protocol. I'm not sure if implementing VOIP with ICS makes

  1   2   3   4   5   6   7   8   9   10   >